Table of Contents

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

Expression

Fields

Variables

Candle formula variables.

public static readonly CandleExpressionCondition.Variable[] Variables

Field Value

Variable[]

Properties

Expression

Expression.

public string Expression { get; }

Property Value

string

IsEmpty

Formula is not present.

public bool IsEmpty { get; }

Property Value

bool

Methods

CheckCondition(ReadOnlySpan<ICandleMessage>, int)

public bool CheckCondition(ReadOnlySpan<ICandleMessage> candles, int candleIndex)

Parameters

candles ReadOnlySpan<ICandleMessage>
candleIndex int

Returns

bool

Load(SettingsStorage)

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Save(SettingsStorage)

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage