Table of Contents

Class StrategyParameterDictionary

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

IStrategyParam dictionary.

public class StrategyParameterDictionary : CachedSynchronizedDictionary<string, IStrategyParam>, ISynchronizedCollection<KeyValuePair<string, IStrategyParam>>, ISynchronizedCollection, IDictionary<string, IStrategyParam>, ICollection<KeyValuePair<string, IStrategyParam>>, IEnumerable<KeyValuePair<string, IStrategyParam>>, IEnumerable, IDisposable
Inheritance
StrategyParameterDictionary
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the StrategyParameterDictionary.

Constructors

StrategyParameterDictionary(Strategy)

IStrategyParam dictionary.

public StrategyParameterDictionary(Strategy strategy)

Parameters

strategy Strategy

Strategy

Remarks

Initializes a new instance of the StrategyParameterDictionary.

Properties

this[string]

Gets or sets the value associated with the specified key.

public override IStrategyParam this[string key] { get; }

Parameters

key string

The key of the value to get or set.

Property Value

IStrategyParam

The value associated with the specified key.

Methods

Add(IStrategyParam)

Add parameter.

public void Add(IStrategyParam p)

Parameters

p IStrategyParam

IStrategyParam

Add(string, IStrategyParam)

Adds the specified key and value to the dictionary.

public override void Add(string key, IStrategyParam value)

Parameters

key string

The key of the element to add.

value IStrategyParam

The value of the element to add.

Clear()

Removes all keys and values from the dictionary.

public override void Clear()

Dispose()

public void Dispose()

Remove(IStrategyParam)

Remove parameter.

public bool Remove(IStrategyParam p)

Parameters

p IStrategyParam

IStrategyParam

Returns

bool

Remove(string)

Removes the value with the specified key from the dictionary.

public override bool Remove(string key)

Parameters

key string

The key of the element to remove.

Returns

bool

true if the element is successfully found and removed; otherwise, false.

TryGetById(string, out IStrategyParam)

Try get parameter by the specified Id.

public bool TryGetById(string id, out IStrategyParam param)

Parameters

id string

Id

param IStrategyParam

IStrategyParam or null if parameter not exist.

Returns

bool

true if parameter exist.