IMarketRuleList
StockSharp.Algo
The interface, describing the rules list.
Implements: INotifyList<IMarketRule>, INotifyCollection<IMarketRule>, ICollection<IMarketRule>, IEnumerable<IMarketRule>, IEnumerable, IList<IMarketRule>, ISynchronizedCollection, ISynchronizable
Properties
Tokens
public IEnumerable<object> Tokens { get; }
value = iMarketRuleList.Tokens
To get all active tokens of rules.
Methods
GetRulesByToken
public IEnumerable<IMarketRule> GetRulesByToken(object token)
result = iMarketRuleList.GetRulesByToken(token)
To get all rules, associated with tokens.
- token
- Token rules.
Returns: All rules, associated with token.
RemoveRulesByToken
public void RemoveRulesByToken(object token, IMarketRule currentRule)
iMarketRuleList.RemoveRulesByToken(token, currentRule)
Delete all rules, for which Token is equal to .
- token
- Token rules.
- currentRule
- The current rule that has initiated deletion. If it was passed, it will not be deleted.