RiskTransactionCommissionRule
StockSharp.Algo.Risk
The base class for risk-rules, tracking commission for own transactions.
Inherits: RiskRule
Properties
Commission
public decimal Commission { get; set; }
value = riskTransactionCommissionRule.Commission
riskTransactionCommissionRule.Commission = value
Commission limit.
Methods
GetTitle
protected override string GetTitle()
result = riskTransactionCommissionRule.GetTitle()
Get title.
IsMatch
protected abstract bool IsMatch(ExecutionMessage execMsg)
result = riskTransactionCommissionRule.IsMatch(execMsg)
Determine whether the commission is applicable to this rule.
- execMsg
- ExecutionMessage
Returns: Check result.
Load
public override void Load(SettingsStorage storage)
riskTransactionCommissionRule.Load(storage)
Loads the state of the object from the specified SettingsStorage.
- storage
- The SettingsStorage instance from which to load the data.
ProcessMessage
public override bool ProcessMessage(Message message)
result = riskTransactionCommissionRule.ProcessMessage(message)
To process the trade message.
- message
- The trade message.
Returns: , if the rule is activated, otherwise, .
Save
public override void Save(SettingsStorage storage)
riskTransactionCommissionRule.Save(storage)
Saves the state of the object to the specified SettingsStorage.
- storage
- The SettingsStorage instance to which to save the data.