RiskSlippageRule
StockSharp.Algo.Risk
Risk-rule, tracking slippage size.
Inherits: RiskRule
Properties
Slippage
public decimal Slippage { get; set; }
value = riskSlippageRule.Slippage
riskSlippageRule.Slippage = value
Slippage size.
Methods
Load
public override void Load(SettingsStorage storage)
riskSlippageRule.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 = riskSlippageRule.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)
riskSlippageRule.Save(storage)
Saves the state of the object to the specified SettingsStorage.
- storage
- The SettingsStorage instance to which to save the data.