Class OptimizerParam
Container holding optimizer parameter information, collected from the field/ property and the [OptimizerParam] attribute.
Inheritance
object
OptimizerParam
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TuringTrader.Optimizer
Assembly: TuringTrader.Simulator.dll
Syntax
public class OptimizerParam
Constructors
| Improve this Doc View SourceOptimizerParam(IAlgorithm, string)
Construct and initialize new optimizer param for algorithm. This is for internal use by the optimizer and should not be called by user applications.
Declaration
public OptimizerParam(IAlgorithm algorithm, string name)
Parameters
Type | Name | Description |
---|---|---|
IAlgorithm | algorithm | parent algorithm |
string | name | name of parameter |
Properties
| Improve this Doc View SourceEnd
Ending value of optimizer parameter.
Declaration
public int End { get; set; }
Property Value
Type | Description |
---|---|
int |
IsEnabled
Flag indicating enabled status of optimizer parameter.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Name
Name of optimizer parameter.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Start
Starting value of optimizer parameter.
Declaration
public int Start { get; set; }
Property Value
Type | Description |
---|---|
int |
Step
Step size of optimizer parameter.
Declaration
public int Step { get; set; }
Property Value
Type | Description |
---|---|
int |
Value
Current value of optimizer parameter.
Declaration
public int Value { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this Doc View SourceGetParams(IAlgorithm)
Retrieve all optimizable parameters for algorithm.
Declaration
public static IEnumerable<OptimizerParam> GetParams(IAlgorithm algo)
Parameters
Type | Name | Description |
---|---|---|
IAlgorithm | algo | input algorithm |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><OptimizerParam> | optimizable parameters |