Class GlobalSettings
Class providing read/ write access to global settings, stored in the Windows registry.
Inheritance
Inherited Members
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public static class GlobalSettings
Properties
| Improve this Doc View SourceAdjustForDividends
Enable/ disable quote adjustment for dividends. Default is true. Note that most data feeds (other than Norgate) cannot adjust for dividends. For these data feeds, this switch won't have any effect.
Declaration
public static bool AdjustForDividends { get; set; }
Property Value
Type | Description |
---|---|
bool |
AlgorithmPath
Property to store path to simulator's algorithm directory.
Declaration
public static string AlgorithmPath { get; }
Property Value
Type | Description |
---|---|
string |
CacheDataGlobally
Enable/ disable global caching of quote data. Default is true.
Declaration
public static bool CacheDataGlobally { get; set; }
Property Value
Type | Description |
---|---|
bool |
CachePath
Property to store path to simulator's cache directory.
Declaration
public static string CachePath { get; }
Property Value
Type | Description |
---|---|
string |
ConsoleMode
specify display mode
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
Quandl 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 |
Methods
| Improve this Doc View SourceGetRegistryValue(SimulatorCore, string, object)
Retrieve algorithm-specific registry value.
Declaration
public static object GetRegistryValue(this SimulatorCore algo, string valueName, object defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
SimulatorCore | 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 |
SetRegistryValue(SimulatorCore, string, object)
Set algorithm-specific registry value.
Declaration
public static void SetRegistryValue(this SimulatorCore algo, string valueName, object value)
Parameters
Type | Name | Description |
---|---|---|
SimulatorCore | algo | algorithm with which the value is associated |
string | valueName | name of the value |
object | value | new value to be assigned |