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
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)

Loads the state of the object from the specified SettingsStorage.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

The 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 SettingsStorage

The SettingsStorage instance to which to save the data.