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()

复置set州.

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.