Table of Contents

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

strategy Strategy

Strategy

Properties

this[string]

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

Parameters

key string

Property Value

IStrategyParam

Methods

Add(IStrategyParam)

Add parameter.

public void Add(IStrategyParam p)

Parameters

p IStrategyParam

IStrategyParam

Add(string, IStrategyParam)

public override void Add(string key, IStrategyParam value)

Parameters

key string
value 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

name string

Name

Returns

IStrategyParam

IStrategyParam

Remove(IStrategyParam)

Remove parameter.

public bool Remove(IStrategyParam p)

Parameters

p IStrategyParam

IStrategyParam

Returns

bool

Remove(string)

public override bool Remove(string key)

Parameters

key string

Returns

bool

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.

TryGetByName(string, out IStrategyParam)

Get parameter by the specified name.

public bool TryGetByName(string name, out IStrategyParam param)

Parameters

name string

Name

param IStrategyParam

IStrategyParam or null if parameter not exist.

Returns

bool

true if parameter exist.