Class OptimizerParam
Container holding optimizer parameter information, collected from the field/ property and the [OptimizerParam] attribute.
Inherited Members
Namespace: TuringTrader.Optimizer
Assembly: TuringTrader.Simulator.dll
Syntax
public class OptimizerParam
Constructors
| Edit this page 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
| Edit this page 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
| Edit this page 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 |
|---|---|
| IEnumerable<OptimizerParam> | optimizable parameters |