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
-
IPersistable
- 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)
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorage
Save(SettingsStorage)
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorage