IMarketRuleList
StockSharp.Algo
界面,描述规则列表.
实现: INotifyList<IMarketRule>, INotifyCollection<IMarketRule>, ICollection<IMarketRule>, IEnumerable<IMarketRule>, IEnumerable, IList<IMarketRule>, ISynchronizedCollection, ISynchronizable
属性
方法
GetRulesByToken
public IEnumerable<IMarketRule> GetRulesByToken(object token)
result = iMarketRuleList.GetRulesByToken(token)
得到所有的规则,与符号有关。
- token
- 托肯规则。
返回值: 所有规则,与符号有关
RemoveRulesByToken
public void RemoveRulesByToken(object token, IMarketRule currentRule)
iMarketRuleList.RemoveRulesByToken(token, currentRule)
删除所有规则, Token 等于 。
- token
- 托肯规则。
- currentRule
- 启动删除的当前规则。 如果通过, 将不会删除 。
TryRegister
public bool TryRegister(IMarketRule rule)
result = iMarketRuleList.TryRegister(rule)
Takes a rule into the container, and says whether it was taken.
- rule
- The rule.
返回值: when the container holds the rule afterwards.