RiskOrderErrorRule

StockSharp.Algo.Risk

Риск-правило, отслеживание количества ошибок в ордерах.

Наследует: RiskRule

Свойства

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

Ошибка подсчитана.

Методы

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

Получите титул.

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskOrderErrorRule.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.

Возвращает: A task that represents the asynchronous load operation.

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

Обработать сообщение для расчета задержки транзакции. Принимаются сообщения типов OrderRegisterMessage, OrderReplaceMessage, OrderCancelMessage и ExecutionMessage.

message
Сообщение.

Возвращает: Задержка транзакции. Если невозможно рассчитать задержку, будет возвращена.

Reset
public override void Reset()
riskOrderErrorRule.Reset()

Сбросить состояние.

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskOrderErrorRule.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.

Возвращает: A task that represents the asynchronous save operation.