Show / Hide Table of Contents

Class GlobalSettings

Class providing read/ write access to global settings, stored in the Windows registry.

Inheritance
object
GlobalSettings
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public static class GlobalSettings

Properties

| Improve this Doc View Source

AdjustForDividends

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
| Improve this Doc View Source

AlgorithmPath

Property to store path to simulator's algorithm directory.

Declaration
public static string AlgorithmPath { get; }
Property Value
Type Description
string
| Improve this Doc View Source

CacheDataGlobally

Enable/ disable global caching of quote data. Default is true.

Declaration
public static bool CacheDataGlobally { get; set; }
Property Value
Type Description
bool
| Improve this Doc View Source

CachePath

Property to store path to simulator's cache directory.

Declaration
public static string CachePath { get; }
Property Value
Type Description
string
| Improve this Doc View Source

ConsoleMode

specify display mode

Declaration
public static string ConsoleMode { get; set; }
Property Value
Type Description
string
| Improve this Doc View Source

DataPath

Property to store the path to the simulator's database.

Declaration
public static string DataPath { get; }
Property Value
Type Description
string
| Improve this Doc View Source

DefaultDataFeed

default data feed

Declaration
public static string DefaultDataFeed { get; set; }
Property Value
Type Description
string
| Improve this Doc View Source

DefaultRCore

Default R-core, as found in HKLM/SOFTWARE/R-core/R

Declaration
public static string DefaultRCore { get; }
Property Value
Type Description
string
| Improve this Doc View Source

DefaultTemplateExtension

Default file-extension for template files.

Declaration
public static string DefaultTemplateExtension { get; set; }
Property Value
Type Description
string
| Improve this Doc View Source

HomePath

Property to store the path to the TuringTrader's home location.

Declaration
public static string HomePath { get; set; }
Property Value
Type Description
string
| Improve this Doc View Source

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
| Improve this Doc View Source

MostRecentAlgorithm

Property returing the name of the most-recently run algorithm.

Declaration
public static string MostRecentAlgorithm { get; set; }
Property Value
Type Description
string
| Improve this Doc View Source

QuandlApiKey

Quandl API key

Declaration
public static string QuandlApiKey { get; set; }
Property Value
Type Description
string
| Improve this Doc View Source

TemplatePath

Property to store the path to the simulator's templates.

Declaration
public static string TemplatePath { get; }
Property Value
Type Description
string
| Improve this Doc View Source

TiingoApiKey

Tiingo API key

Declaration
public static string TiingoApiKey { get; set; }
Property Value
Type Description
string

Methods

| Improve this Doc View Source

GetRegistryValue(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
| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com