Class RiskPnLRule
- Namespace
- StockSharp.Algo.Risk
- Assembly
- StockSharp.Algo.dll
Risk-rule, tracking profit-loss.
[Display(ResourceType = typeof(LocalizedStrings), Name = "PnL", Description = "RulePnL", GroupName = "PnL")]
public class RiskPnLRule : RiskRule, ILogReceiver, IRiskRule, ILogSource, IDisposable, IPersistable, INotifyPropertyChanged
- Inheritance
-
RiskPnLRule
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
RiskPnLRule()
public RiskPnLRule()
Properties
PnL
Profit-loss.
[Display(ResourceType = typeof(LocalizedStrings), Name = "PnL", Description = "PnL", GroupName = "General", Order = 0)]
public Unit PnL { get; set; }
Property Value
Methods
GetTitle()
Get title.
protected override string GetTitle()
Returns
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ProcessMessage(Message)
To process the trade message.
public override bool ProcessMessage(Message message)
Parameters
message
MessageThe trade message.
Returns
Reset()
To reset the state.
public override void Reset()
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.