RiskManager

StockSharp.Algo.Risk

The risks control manager.

Inherits: BaseLogReceiver

Implements: IRiskManager, ILogSource, IDisposable, IPersistable, ICloneable<IRiskManager>, ICloneable

Constructors

RiskManager
public RiskManager()
riskManager = RiskManager()

Initializes a new instance of the RiskManager.

Properties

Rules
public INotifyList<IRiskRule> Rules { get; }
value = riskManager.Rules

Rule list.

Methods

Clone
public IRiskManager Clone()
result = riskManager.Clone()

Creates a new object that is a deep copy of the current instance.

Returns: A new object that is a deep copy of this instance.

Load
public override void Load(SettingsStorage storage)
riskManager.Load(storage)

Loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
ProcessRules
public IEnumerable<IRiskRule> ProcessRules(Message message)
result = riskManager.ProcessRules(message)

To process the trade message.

message
The trade message.

Returns: List of rules, activated by the message.

Reset
public virtual void Reset()
riskManager.Reset()

To reset the state.

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

Saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.