Class AlgorithmLoader
Helper class for dynamic algorithm instantiation.
Inheritance
System.Object
AlgorithmLoader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public class AlgorithmLoader
Methods
| Improve this Doc View SourceGetAllAlgorithms(Boolean)
Return list of all known TuringTrader algorithms
Declaration
public static List<AlgorithmInfo> GetAllAlgorithms(bool publicOnly = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | publicOnly | if true, only return public classes |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<AlgorithmInfo> | list of algorithms |
InstantiateAlgorithm(String)
Instantiate TuringTrader algorithm
Declaration
public static IAlgorithm InstantiateAlgorithm(string algorithmName)
Parameters
Type | Name | Description |
---|---|---|
System.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()