RiskPnLRule

StockSharp.Algo.Risk

Risk-rule, tracking profit-loss.

Inherits: RiskRule

Properties

PnL
public Unit PnL { get; set; }
value = riskPnLRule.PnL
riskPnLRule.PnL = value

Profit-loss.

Methods

GetTitle
protected override string GetTitle()
result = riskPnLRule.GetTitle()

Get title.

Load
public override void Load(SettingsStorage storage)
riskPnLRule.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 = riskPnLRule.ProcessMessage(message)

To process the trade message.

message
The trade message.

Returns: , if the rule is activated, otherwise, .

Reset
public override void Reset()
riskPnLRule.Reset()

To reset the state.

Save
public override void Save(SettingsStorage storage)
riskPnLRule.Save(storage)

Saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.