Class GlobalSettings
Class providing read/ write access to global settings, stored in the Windows registry.
Inheritance
Inherited Members
Namespace: TuringTrader.SimulatorV2
Assembly: TuringTrader.Simulator.dll
Syntax
public static class GlobalSettings
Properties
| Improve this Doc View SourceAlgorithmPath
Property to store path to simulator's algorithm directory.
Declaration
public static string AlgorithmPath { get; }
Property Value
Type | Description |
---|---|
string |
CachePath
Property to store path to simulator's cache directory.
Declaration
public static string CachePath { get; }
Property Value
Type | Description |
---|---|
string |
ConsoleMode
Display mode for console output.
Declaration
public static string ConsoleMode { get; set; }
Property Value
Type | Description |
---|---|
string |
DataPath
Property to store the path to the simulator's database.
Declaration
public static string DataPath { get; }
Property Value
Type | Description |
---|---|
string |
DefaultDataFeed
default data feed
Declaration
public static string DefaultDataFeed { get; set; }
Property Value
Type | Description |
---|---|
string |
DefaultRCore
Default R-core, as found in HKLM/SOFTWARE/R-core/R
Declaration
public static string DefaultRCore { get; }
Property Value
Type | Description |
---|---|
string |
DefaultTemplateExtension
Default file-extension for template files.
Declaration
public static string DefaultTemplateExtension { get; set; }
Property Value
Type | Description |
---|---|
string |
HomePath
Property to store the path to the TuringTrader's home location.
Declaration
public static string HomePath { get; set; }
Property Value
Type | Description |
---|---|
string |
LoadAlgoDlls
Enable/ disable loading of algorithms from external DLLs. Default is true. Note that this setting can only be made prior to accessing the AlgorithmLoader.
Declaration
public static bool LoadAlgoDlls { get; set; }
Property Value
Type | Description |
---|---|
bool |
MostRecentAlgorithm
Property returing the name of the most-recently run algorithm.
Declaration
public static string MostRecentAlgorithm { get; set; }
Property Value
Type | Description |
---|---|
string |
QuandlApiKey
Tiingo API key
Declaration
public static string QuandlApiKey { get; set; }
Property Value
Type | Description |
---|---|
string |
TemplatePath
Property to store the path to the simulator's templates.
Declaration
public static string TemplatePath { get; }
Property Value
Type | Description |
---|---|
string |
TiingoApiKey
Tiingo API key
Declaration
public static string TiingoApiKey { get; set; }
Property Value
Type | Description |
---|---|
string |
Version
Return version of simulation engine.
Declaration
public static string Version { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Improve this Doc View SourceGetRegistryValue(string, string, object)
Get registry value from HKCU/TuringTrader.
Declaration
public static object GetRegistryValue(string sub, string valueName, object defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
string | sub | |
string | valueName | |
object | defaultValue |
Returns
Type | Description |
---|---|
object |
GetRegistryValue(Algorithm, string, object)
Retrieve algorithm-specific registry value.
Declaration
public static object GetRegistryValue(this Algorithm algo, string valueName, object defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
Algorithm | algo | algorithm with which the value is associated |
string | valueName | name of the value |
object | defaultValue | default value, in case it has not been assigned |
Returns
Type | Description |
---|---|
object |
OpenSubKey(string, bool)
Open registry sub-key under HKCU/TuringTrader or HKCU/{assy-name}.
Declaration
public static RegistryKey OpenSubKey(string sub, bool writable = false)
Parameters
Type | Name | Description |
---|---|---|
string | sub | sub key name |
bool | writable | true, if writable |
Returns
Type | Description |
---|---|
Microsoft.Win32.RegistryKey | registry key |
SetRegistryValue(string, string, object)
Set registry value in HKCU/TuringTrader.
Declaration
public static void SetRegistryValue(string sub, string valueName, object value)
Parameters
Type | Name | Description |
---|---|---|
string | sub | sub key |
string | valueName | value name |
object | value |
SetRegistryValue(Algorithm, string, object)
Set algorithm-specific registry value.
Declaration
public static void SetRegistryValue(this Algorithm algo, string valueName, object value)
Parameters
Type | Name | Description |
---|---|---|
Algorithm | algo | algorithm with which the value is associated |
string | valueName | name of the value |
object | value | new value to be assigned |