CandleExpressionCondition

StockSharp.Algo.Candles.Patterns

Formel für eine einzelne Kerze im inneren Muster.

Implementiert: IPersistable

Konstruktoren

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

Erstellen Sie Instanz.

fileSystem
Dateisystem.
expression
Ausdruck

Eigenschaften

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

Ausdruck.

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

Formel ist nicht vorhanden.

Methoden

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

Überprüfen Sie, ob die Bedingung für die angegebenen Kerzen erfüllt ist.

candles
Die Kerzen, um den Zustand zu überprüfen.
candleIndex
Der Index der Kerze in der Kerzen-Array.

Rückgabe: Prüfergebnis.

Load
public void Load(SettingsStorage storage)
candleExpressionCondition.Load(storage)

Lasteinstellungen.

storage
Einstellungen Lagerung.
Save
public void Save(SettingsStorage storage)
candleExpressionCondition.Save(storage)

Einstellungen speichern.

storage
Einstellungen Lagerung.
ToString
public override string ToString()
result = candleExpressionCondition.ToString()

Konvertieren Sie in eine Liniendarstellung.

Rückgabe: String-Leistung.

Felder

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

Candle Formelvariablen.