Table of Contents

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

int

Methods

GetTitle()

Get title.

protected override string GetTitle()

Returns

string

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Process(ExecutionMessage)

To calculate commission.

public override decimal? Process(ExecutionMessage message)

Parameters

message ExecutionMessage

The message containing the information about the order or own trade.

Returns

decimal?

The commission. If the commission cannot be calculated then null will be returned.

Reset()

To reset the state.

public override void Reset()

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.