Class RiskTradeVolumeRule
- Namespace
- StockSharp.Algo.Risk
- Assembly
- StockSharp.Algo.dll
Risk-rule, tracking trade volume.
[Display(ResourceType = typeof(LocalizedStrings), Name = "TradeVolume", Description = "RiskTradeVolume", GroupName = "Trades")]
public class RiskTradeVolumeRule : RiskRule, ILogReceiver, IRiskRule, ILogSource, IDisposable, IPersistable, INotifyPropertyChanged
- Inheritance
-
RiskTradeVolumeRule
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
RiskTradeVolumeRule()
public RiskTradeVolumeRule()
Properties
Volume
Trade volume.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Volume", Description = "TradeVolumeDesc", GroupName = "General", Order = 0)]
public decimal Volume { 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
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.