Class CommissionPerTradeCountRule
- Namespace
- StockSharp.Algo.Commissions
- Assembly
- StockSharp.Algo.dll
Number of trades commission.
[Display(ResourceType = typeof(LocalizedStrings), Name = "TradesCount", Description = "TradesCountCommission", GroupName = "Trades")]
public class CommissionPerTradeCountRule : CommissionRule, ICommissionRule, IPersistable
- Inheritance
-
CommissionPerTradeCountRule
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
CommissionPerTradeCountRule()
public CommissionPerTradeCountRule()
Properties
Count
Number of trades.
[Display(ResourceType = typeof(LocalizedStrings), Name = "TradesOf", Description = "LimitOrderTif", GroupName = "General")]
public int Count { 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.