MarketRuleList

StockSharp.Algo

Rule list.

Inherits: SynchronizedSet<IMarketRule>

Implements: IMarketRuleList, INotifyList<IMarketRule>, INotifyCollection<IMarketRule>, ICollection<IMarketRule>, IEnumerable<IMarketRule>, IEnumerable, IList<IMarketRule>, ISynchronizedCollection, ISynchronizable

Constructors

MarketRuleList
public MarketRuleList(IMarketRuleContainer container)
marketRuleList = MarketRuleList(container)

Rule list.

container
The rules container.

Methods

GetRulesByToken
public IEnumerable<IMarketRule> GetRulesByToken(object token)
result = marketRuleList.GetRulesByToken(token)

To get all rules, associated with tokens.

token
Token rules.

Returns: All rules, associated with token.

OnAdded
protected override void OnAdded(IMarketRule item)
marketRuleList.OnAdded(item)

Adding the element.

item
Element.
OnClearing
protected override bool OnClearing()
result = marketRuleList.OnClearing()

Clearing elements.

Returns: The sign of possible action.

OnRemoved
protected override void OnRemoved(IMarketRule item)
marketRuleList.OnRemoved(item)

Deleting the element.

item
Element.