Class AlgorithmLoader
Helper class for dynamic algorithm instantiation.
Inheritance
object
AlgorithmLoader
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 class AlgorithmLoader
Methods
| Improve this Doc 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 |
---|---|
System.Collections.Generic.List<T><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()