Class StrategyParameterDictionary
- Namespace
- StockSharp.Algo.Strategies
- Assembly
- StockSharp.Algo.dll
IStrategyParam dictionary.
public class StrategyParameterDictionary : CachedSynchronizedDictionary<string, IStrategyParam>, IDisposable
- Inheritance
-
StrategyParameterDictionary
- Implements
- Extension Methods
Constructors
StrategyParameterDictionary(Strategy)
Initializes a new instance of the StrategyParameterDictionary.
public StrategyParameterDictionary(Strategy strategy)
Parameters
Properties
this[string]
public override IStrategyParam this[string key] { get; }
Parameters
key
string
Property Value
Methods
Add(IStrategyParam)
Add parameter.
public void Add(IStrategyParam p)
Parameters
Add(string, IStrategyParam)
public override void Add(string key, IStrategyParam value)
Parameters
key
stringvalue
IStrategyParam
Clear()
public override void Clear()
Dispose()
public void Dispose()
GetByName(string)
Try get parameter by the specified Name.
public IStrategyParam GetByName(string name)
Parameters
Returns
Remove(IStrategyParam)
Remove parameter.
public bool Remove(IStrategyParam p)
Parameters
Returns
Remove(string)
public override bool Remove(string key)
Parameters
key
string
Returns
TryGetById(string, out IStrategyParam)
Try get parameter by the specified Id.
public bool TryGetById(string id, out IStrategyParam param)
Parameters
id
stringparam
IStrategyParamIStrategyParam or null if parameter not exist.
Returns
TryGetByName(string, out IStrategyParam)
Get parameter by the specified name.
public bool TryGetByName(string name, out IStrategyParam param)
Parameters
name
stringparam
IStrategyParamIStrategyParam or null if parameter not exist.