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.SimulatorV2
Assembly: TuringTrader.Simulator.dll
Syntax
public static class GlobalSettings

Properties

| Edit this page View Source

AlgorithmPath

Property to store path to simulator's algorithm directory.

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

CachePath

Property to store path to simulator's cache directory.

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

ConsoleMode

Display mode for console output.

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

DataPath

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

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

DefaultDataFeed

default data feed

Declaration
public static string DefaultDataFeed { get; set; }
Property Value
Type Description
string
| Edit this page 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
| Edit this page View Source

DefaultTemplateExtension

Default file-extension for template files.

Declaration
public static string DefaultTemplateExtension { get; set; }
Property Value
Type Description
string
| Edit this page 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
| Edit this page 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
| Edit this page 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
| Edit this page View Source

NduAutoUpdate

NDU Auto Update

Declaration
public static bool NduAutoUpdate { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

QuandlApiKey

Tiingo API key

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

TemplatePath

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

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

TiingoApiKey

Tiingo API key

Declaration
public static string TiingoApiKey { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Version

Return version of simulation engine.

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

Methods

| Edit this page View Source

GetRegistryValue(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
| Edit this page View Source

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
| Edit this page View Source

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
RegistryKey

registry key

| Edit this page View Source

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
| Edit this page View Source

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

  • Edit this page
  • View Source
In this article
Back to top Copyright © 2011-2023, Bertram Enterprises LLC dba TuringTrader.com