RiskOrderFreqRule

StockSharp.Algo.Risk

Risk-rule, tracking orders placing frequency.

Inherits: RiskRule

Properties

Count
public int Count { get; set; }
value = riskOrderFreqRule.Count
riskOrderFreqRule.Count = value

Order count.

Interval
public TimeSpan Interval { get; set; }
value = riskOrderFreqRule.Interval
riskOrderFreqRule.Interval = value

Interval, during which orders quantity will be monitored.

Methods

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

Get title.

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskOrderFreqRule.LoadAsync(storage, cancellationToken)

Asynchronously loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
cancellationToken
A token to monitor for cancellation requests.

Returns: A task that represents the asynchronous load operation.

ProcessMessage
public override bool ProcessMessage(Message message)
result = riskOrderFreqRule.ProcessMessage(message)

To process the trade message.

message
The trade message.

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

Reset
public override void Reset()
riskOrderFreqRule.Reset()

To reset the state.

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskOrderFreqRule.SaveAsync(storage, cancellationToken)

Asynchronously saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.
cancellationToken
A token to monitor for cancellation requests.

Returns: A task that represents the asynchronous save operation.