Table of Contents

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

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.