Class AlgorithmLoader
Helper class for dynamic algorithm instantiation.
Inherited Members
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public class AlgorithmLoader
Methods
| Edit this page View SourceGetAllAlgorithms(bool)
Return list of all known TuringTrader algorithms
Declaration
public static List<AlgorithmInfo> GetAllAlgorithms(bool publicOnly = true)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | publicOnly | if true, only return public classes |
Returns
| Type | Description |
|---|---|
| List<AlgorithmInfo> | list of algorithms |
InstantiateAlgorithm(string)
Instantiate TuringTrader algorithm
Declaration
public static IAlgorithm InstantiateAlgorithm(string algorithmName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | algorithmName | class name |
Returns
| Type | Description |
|---|---|
| IAlgorithm | algorithm instance |
InstantiateAlgorithm(AlgorithmInfo)
Instantiate TuringTrader algorithm
Declaration
public static IAlgorithm InstantiateAlgorithm(AlgorithmInfo algorithmInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| AlgorithmInfo | algorithmInfo | algorithm info |
Returns
| Type | Description |
|---|---|
| IAlgorithm | algorithm instance |
PrintInfo()
Print info about all algorithms found
Declaration
public static void PrintInfo()