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