Class CandleExpressionCondition
- Namespace
- StockSharp.Algo.Candles.Patterns
- Assembly
- StockSharp.Algo.dll
Formula for a single candle inside pattern.
public class CandleExpressionCondition : IPersistable
- Inheritance
-
CandleExpressionCondition
- Implements
- Inherited Members
- Extension Methods
Constructors
CandleExpressionCondition(string)
Create instance.
public CandleExpressionCondition(string expression)
Parameters
expression
string
Fields
Variables
Candle formula variables.
public static readonly CandleExpressionCondition.Variable[] Variables
Field Value
- Variable[]
Properties
Expression
Expression.
public string Expression { get; }
Property Value
IsEmpty
Formula is not present.
public bool IsEmpty { get; }
Property Value
Methods
CheckCondition(ReadOnlySpan<ICandleMessage>, int)
Check if the condition is met for the given candles.
public bool CheckCondition(ReadOnlySpan<ICandleMessage> candles, int candleIndex)
Parameters
candles
ReadOnlySpan<ICandleMessage>The candles to check the condition against.
candleIndex
intThe index of the candle in the candles array.
Returns
- bool
Check result.
Load(SettingsStorage)
Loads the state of the object from the specified SettingsStorage.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageThe SettingsStorage instance from which to load the data.
Save(SettingsStorage)
Saves the state of the object to the specified SettingsStorage.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageThe SettingsStorage instance to which to save the data.
ToString()
public override string ToString()