Table of Contents

Class RiskTransactionCommissionRule

Namespace
StockSharp.Algo.Risk
Assembly
StockSharp.Algo.dll

The base class for risk-rules, tracking commission for own transactions.

public abstract class RiskTransactionCommissionRule : RiskRule, ILogReceiver, IRiskRule, ILogSource, IDisposable, IPersistable, INotifyPropertyChanged
Inheritance
RiskTransactionCommissionRule
Implements
Derived
Inherited Members
Extension Methods

Constructors

RiskTransactionCommissionRule()

protected RiskTransactionCommissionRule()

Properties

Commission

Commission limit.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Commission", Description = "CommissionDesc", GroupName = "General", Order = 0)]
public decimal Commission { get; set; }

Property Value

decimal

Methods

GetTitle()

Get title.

protected override string GetTitle()

Returns

string

IsMatch(ExecutionMessage)

Determine whether the commission is applicable to this rule.

protected abstract bool IsMatch(ExecutionMessage execMsg)

Parameters

execMsg ExecutionMessage

ExecutionMessage

Returns

bool

Check result.

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ProcessMessage(Message)

To process the trade message.

public override bool ProcessMessage(Message message)

Parameters

message Message

The trade message.

Returns

bool

true, if the rule is activated, otherwise, false.

Reset()

To reset the state.

public override void Reset()

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.