RiskRule

StockSharp.Algo.Risk

Base risk-rule.

Implements: IRiskRule, IPersistable, INotifyPropertyChanged

Constructors

RiskRule
protected RiskRule()
riskRule = RiskRule()

Initialize RiskRule.

Properties

Action
public RiskActions Action { get; set; }
value = riskRule.Action
riskRule.Action = value

Action.

Title
public string Title { get; private set; }
value = riskRule.Title
riskRule.Title = value

Header.

Methods

GetTitle
protected abstract string GetTitle()
result = riskRule.GetTitle()

Get title.

Load
public virtual void Load(SettingsStorage storage)
riskRule.Load(storage)

Loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
ProcessMessage
public abstract bool ProcessMessage(Message message)
result = riskRule.ProcessMessage(message)

To process the trade message.

message
The trade message.

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

Reset
public virtual void Reset()
riskRule.Reset()

To reset the state.

Save
public virtual void Save(SettingsStorage storage)
riskRule.Save(storage)

Saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
UpdateTitle
protected void UpdateTitle()
riskRule.UpdateTitle()

Update title.