StrategyParameterDictionary

StockSharp.Algo.Strategies

IStrategyParam dictionary.

Inherits: CachedSynchronizedDictionary<string, IStrategyParam>

Implements: IDisposable

Constructors

StrategyParameterDictionary
public StrategyParameterDictionary(Strategy strategy)
strategyParameterDictionary = StrategyParameterDictionary(strategy)

IStrategyParam dictionary.

strategy
Strategy

Properties

Item
public override IStrategyParam Item { get; }
value = strategyParameterDictionary.Item

To get the column by name Name.

name
Column name.

Returns: Found column. If the column does not exist then is returned.

Methods

Add
public void Add(IStrategyParam p)
strategyParameterDictionary.Add(p)

Add parameter.

p
IStrategyParam
Add
public override void Add(string key, IStrategyParam value)
strategyParameterDictionary.Add(key, value)
Clear
public override void Clear()
strategyParameterDictionary.Clear()

Clears all adapter states and resets current state to Disconnected.

Dispose
public void Dispose()
strategyParameterDictionary.Dispose()

Disposes of items in the pool that implement IDisposable.

Remove
public bool Remove(IStrategyParam p)
result = strategyParameterDictionary.Remove(p)

Remove parameter.

p
IStrategyParam
Remove
public override bool Remove(string key)
result = strategyParameterDictionary.Remove(key)
TryGetById
public bool TryGetById(string id, IStrategyParam param)
result = strategyParameterDictionary.TryGetById(id, param)

Try get parameter by the specified Id.

id
Id
param
IStrategyParam or if parameter not exist.

Returns: if parameter exist.