CandleExpressionCondition

StockSharp.Algo.Candles.Patterns

パターンの中の単一のキャンドルのためのフォーミュラ。

実装: IAsyncPersistable

コンストラクター

CandleExpressionCondition
public CandleExpressionCondition(IFileSystem fileSystem, string expression)
candleExpressionCondition = CandleExpressionCondition(fileSystem, expression)

インスタンスを作成します。

fileSystem
ファイル システム。
expression
エクステンション

プロパティ

Expression
public string Expression { get; private set; }
value = candleExpressionCondition.Expression
candleExpressionCondition.Expression = value

エクスプレス。

IsEmpty
public bool IsEmpty { get; }
value = candleExpressionCondition.IsEmpty

式は存在しません。

メソッド

CheckCondition
public bool CheckCondition(ReadOnlySpan<ICandleMessage> candles, int candleIndex)
result = candleExpressionCondition.CheckCondition(candles, candleIndex)

条件が与えられたキャンドルに会ったかどうかを確認してください。

candles
条件を逆にチェックするキャンドル。
candleIndex
キャンドルの配列のキャンドルのインデックス。

戻り値: 結果をチェックする。

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

PrepareAsync
public ValueTask PrepareAsync(CancellationToken cancellationToken)
result = candleExpressionCondition.PrepareAsync(cancellationToken)

Compile Expression, so that the condition can be evaluated. Repeated calls do nothing.

cancellationToken
CancellationToken

戻り値: ValueTask

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

ToString
public override string ToString()
result = candleExpressionCondition.ToString()

ライン表現に換算します。

戻り値: 弦のパフォーマンス。

フィールド

Variables
public static readonly Variable[] Variables
value = CandleExpressionCondition.Variables

キャンドル式変数。