Class RiskTradeFreqRule
- Namespace
- StockSharp.Algo.Risk
- Assembly
- StockSharp.Algo.dll
Risk-rule, tracking orders execution frequency.
[Display(ResourceType = typeof(LocalizedStrings), Name = "TradeFreq", Description = "RiskTradeFreq", GroupName = "Trades")]
public class RiskTradeFreqRule : RiskRule, ILogReceiver, IRiskRule, ILogSource, IDisposable, IPersistable, INotifyPropertyChanged
- Inheritance
-
RiskTradeFreqRule
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
RiskTradeFreqRule()
public RiskTradeFreqRule()
Properties
Count
Number of trades.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Count", Description = "LimitOrderTif", GroupName = "General", Order = 0)]
public int Count { get; set; }
Property Value
Interval
Interval, during which trades quantity will be monitored.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Interval", Description = "TradesInterval", GroupName = "General", Order = 1)]
public TimeSpan Interval { get; set; }
Property Value
Methods
GetTitle()
Get title.
protected override string GetTitle()
Returns
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ProcessMessage(Message)
To process the trade message.
public override bool ProcessMessage(Message message)
Parameters
message
MessageThe trade message.
Returns
Reset()
To reset the state.
public override void Reset()
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.