Class CommissionPerOrderCountRule
- Namespace
- StockSharp.Algo.Commissions
- Assembly
- StockSharp.Algo.dll
Number of orders commission.
[Display(ResourceType = typeof(LocalizedStrings), Name = "OrderCount", Description = "OrderCountCommission", GroupName = "Orders")]
public class CommissionPerOrderCountRule : CommissionRule, ICommissionRule, IPersistable
- Inheritance
-
CommissionPerOrderCountRule
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
CommissionPerOrderCountRule()
public CommissionPerOrderCountRule()
Properties
Count
Order count.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Orders", Description = "OrdersCount", 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.