StrategyParam

StockSharp.Algo.Strategies

Wrapper for typified access to the strategy parameter.

Erbt von: NotifiableObject

Implementiert: IStrategyParam, IPersistable, INotifyPropertyChanged, IAttributesEntity

Konstruktoren

StrategyParam(string, T)

Initializes a new instance of the StrategyParam.

id
Parameter identifier.
initialValue
The initial value.

Eigenschaften

Attributes : IList<Attribute>

Атрибуты.

CanOptimize : bool

Check can optimize parameter.

Id : string

Parameter identifier.

OptimizeFrom : object

The From value at optimization.

OptimizeStep : object

The Increment value at optimization.

OptimizeTo : object

The To value at optimization.

OptimizeValues : IEnumerable<T>

Explicit values for optimization (for types like Security, DataType that don't support ranges).

Value : T

The parameter value.

Methoden

Load(SettingsStorage)

Load settings.

storage
Settings storage.
Save(SettingsStorage)

Save settings.

storage
Settings storage.
SetBasic(bool) : StrategyParam<T>

Set BasicSettingAttribute.

basic
Value.

Rückgabe: StrategyParam

SetCanOptimize(bool) : StrategyParam<T>

Set CanOptimize value.

canOptimize
The value of CanOptimize.

Rückgabe: The strategy parameter.

SetDisplay(string, string, string) : StrategyParam<T>

Set display settings.

displayName
The display name.
description
The description of the diagram element parameter.
category
The category of the diagram element parameter.

Rückgabe: StrategyParam

SetGreaterThanZero() : StrategyParam<T>

Set greater than zero validator.

Rückgabe: StrategyParam

SetHidden(bool) : StrategyParam<T>

Set BrowsableAttribute.

hidden
Is the parameter hidden in the editor.

Rückgabe: StrategyParam

SetNotNegative() : StrategyParam<T>

Set not negative validator.

Rückgabe: StrategyParam

SetNullOrMoreZero() : StrategyParam<T>

Set or more zero validator.

Rückgabe: StrategyParam

SetNullOrNotNegative() : StrategyParam<T>

Set or not negative validator.

Rückgabe: StrategyParam

SetOptimize(T, T, T) : StrategyParam<T>

Fill optimization parameters.

optimizeFrom
The From value at optimization.
optimizeTo
The To value at optimization.
optimizeStep
The Increment value at optimization.

Rückgabe: The strategy parameter.

SetOptimizeValues(IEnumerable<T>) : StrategyParam<T>

Set explicit values for optimization (for types like Security, DataType).

values
The values to iterate during optimization.

Rückgabe: The strategy parameter.

SetRange(T, T) : StrategyParam<T>

Set range validator.

min
Minimum value.
max
Maximum value.

Rückgabe: StrategyParam

SetReadOnly(bool) : StrategyParam<T>

Set ReadOnlyAttribute.

value
Value.

Rückgabe: StrategyParam

SetRequired() : StrategyParam<T>

Set required validator.

Rückgabe: StrategyParam

SetStep(T, T) : StrategyParam<T>

Set values step restriction (value must equal base + N*step).

step
Step (>0).
baseValue
Base value (default 0).

Rückgabe: StrategyParam.

ToString() : string

Преобразовать к строковому представлению.

Rückgabe: Строковое представление.