CommissionRule

StockSharp.Algo.Commissions

The commission calculating rule.

継承元: NotifiableObject

実装: ICommissionRule, IPersistable

コンストラクター

CommissionRule()

Initialize CommissionRule.

プロパティ

Title : string

Title.

Value : Unit

The parameter value.

メソッド

EnterScope() : Scope

Enter sync scope.

戻り値: Scope

GetTitle() : string

Get title.

GetValue(decimal?, decimal?) : decimal?

Get commission value using price and volume. For percent units, uses turnover (price * volume). Absolute units return the absolute value.

price
Price base (order or trade).
volume
Volume base (order or trade).

戻り値: Commission value or null if cannot be calculated.

Load(SettingsStorage)

Load settings.

storage
Settings storage.
Process(ExecutionMessage) : decimal?

To calculate commission.

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

戻り値: The commission. If the commission cannot be calculated then will be returned.

Reset()

Reset state.

Save(SettingsStorage)

Save settings.

storage
Settings storage.
UpdateTitle()

Update title.