Class CommissionTurnOverRule
- Namespace
- StockSharp.Algo.Commissions
- Assembly
- StockSharp.Algo.dll
Turnover commission.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Turnover", Description = "TurnoverCommission", GroupName = "Trades")]
public class CommissionTurnOverRule : CommissionRule, ICommissionRule, IPersistable
- Inheritance
-
CommissionTurnOverRule
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
CommissionTurnOverRule()
public CommissionTurnOverRule()
Properties
TurnOver
Turnover.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Turnover", Description = "Turnover", GroupName = "General")]
public decimal TurnOver { 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.
Process(ExecutionMessage)
To calculate commission.
public override decimal? Process(ExecutionMessage message)
Parameters
message
ExecutionMessageThe message containing the information about the order or own trade.
Returns
Reset()
To reset the state.
public override void Reset()
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.