RiskRule

StockSharp.Algo.Risk

リスクルールをベース。

実装: IRiskRule, IAsyncPersistable, INotifyPropertyChanged

コンストラクター

RiskRule
protected RiskRule()
riskRule = RiskRule()

Initialize RiskRule.

プロパティ

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

アクション。

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

ヘッダー。

メソッド

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

タイトルを取得

LoadAsync
public virtual Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskRule.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 abstract bool ProcessMessage(Message message)
result = riskRule.ProcessMessage(message)

取引遅延の処理のメッセージ処理のため。OrderRegisterMessage、OrderReplaceMessage、OrderCancelMessage、OrderCancelMessage@及びExecutionMessageのメッセージは受け付けます。

message
ご挨拶

戻り値: トランザクション遅延。遅延を計算できない場合は、返されます。

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

リセット状態。

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

UpdateTitle
protected void UpdateTitle()
riskRule.UpdateTitle()

タイトルを更新します。