Class StrategyParam
Wrapper for typified access to the strategy parameter.
Namespace: StockSharp.Algo.Strategies
Assembly: StockSharp.Algo.dll
Syntax
public class StrategyParam : Object, IStrategyParam, IPersistable
Constructors
StrategyParam(Strategy, String, String, Type)
Initializes a new instance of the StrategyParam.
Declaration
public StrategyParam(Strategy strategy, string id, string name, Type type)
Parameters
Type | Name | Description |
---|---|---|
Strategy | strategy | Strategy. |
String | id | Parameter identifier. |
String | name | Parameter name. |
Type | type | The type of the parameter value. |
StrategyParam(Strategy, String, String, Type, Object)
Initializes a new instance of the StrategyParam.
Declaration
public StrategyParam(Strategy strategy, string id, string name, Type type, object initialValue)
Parameters
Type | Name | Description |
---|---|---|
Strategy | strategy | Strategy. |
String | id | Parameter identifier. |
String | name | Parameter name. |
Type | type | The type of the parameter value. |
Object | initialValue | The initial value. |
StrategyParam(Strategy, String, Type)
Initializes a new instance of the StrategyParam.
Declaration
public StrategyParam(Strategy strategy, string name, Type type)
Parameters
Type | Name | Description |
---|---|---|
Strategy | strategy | Strategy. |
String | name | Parameter name. |
Type | type | The type of the parameter value. |
StrategyParam(Strategy, String, Type, Object)
Initializes a new instance of the StrategyParam.
Declaration
public StrategyParam(Strategy strategy, string name, Type type, object initialValue)
Parameters
Type | Name | Description |
---|---|---|
Strategy | strategy | Strategy. |
String | name | Parameter name. |
Type | type | The type of the parameter value. |
Object | initialValue | The initial value. |
Properties
AllowNull
Is it possible to store in Value a value, equal to null.
Declaration
public bool AllowNull { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
CanOptimize
Check can optimize parameter.
Declaration
public bool CanOptimize { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Id
Parameter identifier.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
String |
Name
Parameter name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
OptimizeFrom
The From value at optimization.
Declaration
public object OptimizeFrom { get; set; }
Property Value
Type | Description |
---|---|
Object |
OptimizeStep
The Increment value at optimization.
Declaration
public object OptimizeStep { get; set; }
Property Value
Type | Description |
---|---|
Object |
OptimizeTo
The To value at optimization.
Declaration
public object OptimizeTo { get; set; }
Property Value
Type | Description |
---|---|
Object |
Type
The type of the parameter value.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Value
The parameter value.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
Object |
Methods
Load(SettingsStorage)
Load settings.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
Save(SettingsStorage)
Save settings.
Declaration
public void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |