Class RiskSlippageRule
- Namespace
- StockSharp.Algo.Risk
- Assembly
- StockSharp.Algo.dll
Risk-rule, tracking slippage size.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Slippage", Description = "RiskSlippage", GroupName = "Orders")]
public class RiskSlippageRule : RiskRule, ILogReceiver, IRiskRule, ILogSource, IDisposable, IPersistable, INotifyPropertyChanged
- Inheritance
-
RiskSlippageRule
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
RiskSlippageRule()
public RiskSlippageRule()
Properties
Slippage
Slippage size.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Slippage", Description = "SlippageSize", GroupName = "General", Order = 0)]
public decimal Slippage { 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.