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)
public bool CheckCondition(ReadOnlySpan<ICandleMessage> candles, int candleIndex)
Parameters
candles
ReadOnlySpan<ICandleMessage>candleIndex
int
Returns
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.