Table of Contents

Class StrategyParam<T>

Namespace
StockSharp.Algo.Strategies
Assembly
StockSharp.Algo.dll

Wrapper for typified access to the strategy parameter.

public class StrategyParam<T> : NotifiableObject, IStrategyParam, IPersistable, INotifyPropertyChanged

Type Parameters

T

The type of the parameter value.

Inheritance
StrategyParam<T>
Implements
IPersistable
Extension Methods

Constructors

StrategyParam(string)

Initializes a new instance of the StrategyParam<T>.

public StrategyParam(string name)

Parameters

name string

Parameter name.

StrategyParam(string, string)

Initializes a new instance of the StrategyParam<T>.

public StrategyParam(string id, string name)

Parameters

id string

Parameter identifier.

name string

Parameter name.

StrategyParam(string, string, T)

Initializes a new instance of the StrategyParam<T>.

public StrategyParam(string id, string name, T initialValue)

Parameters

id string

Parameter identifier.

name string

Parameter name.

initialValue T

The initial value.

StrategyParam(string, T)

Initializes a new instance of the StrategyParam<T>.

public StrategyParam(string name, T initialValue)

Parameters

name string

Parameter name.

initialValue T

The initial value.

Properties

CanOptimize

Check can optimize parameter.

public bool CanOptimize { get; set; }

Property Value

bool

Id

Parameter identifier.

public string Id { get; }

Property Value

string

Name

Parameter name.

public string Name { get; }

Property Value

string

OptimizeFrom

The From value at optimization.

public object OptimizeFrom { get; set; }

Property Value

object

OptimizeStep

The Increment value at optimization.

public object OptimizeStep { get; set; }

Property Value

object

OptimizeTo

The To value at optimization.

public object OptimizeTo { get; set; }

Property Value

object

Validator

Value validator.

public Func<T, bool> Validator { get; set; }

Property Value

Func<T, bool>

Value

public virtual T Value { get; set; }

Property Value

T

Methods

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage, bool)

Save settings.

public void Save(SettingsStorage storage, bool addDescription)

Parameters

storage SettingsStorage

Ecng.Serialization.SettingsStorage

addDescription bool

Add description info.

ToString()

public override string ToString()

Returns

string