Table of Contents

Class HeikinAshiCandleBuilder

Namespace
StockSharp.Algo.Candles.Compression
Assembly
StockSharp.Algo.dll

The builder of candles of HeikinAshiCandleBuilder type.

public class HeikinAshiCandleBuilder : CandleBuilder<HeikinAshiCandleMessage>, IPersistable, ILogReceiver, ILogSource, ICandleBuilder, IDisposable
Inheritance
HeikinAshiCandleBuilder
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

HeikinAshiCandleBuilder(IExchangeInfoProvider)

Initializes a new instance of the HeikinAshiCandleBuilder.

public HeikinAshiCandleBuilder(IExchangeInfoProvider exchangeInfoProvider)

Parameters

exchangeInfoProvider IExchangeInfoProvider

The exchange boards provider.

Methods

CreateCandle(ICandleBuilderSubscription, ICandleBuilderValueTransform)

To create a new candle.

protected override HeikinAshiCandleMessage CreateCandle(ICandleBuilderSubscription subscription, ICandleBuilderValueTransform transform)

Parameters

subscription ICandleBuilderSubscription

Subscription.

transform ICandleBuilderValueTransform

The data source transformation.

Returns

HeikinAshiCandleMessage

Created candle.

IsCandleFinishedBeforeChange(ICandleBuilderSubscription, HeikinAshiCandleMessage, ICandleBuilderValueTransform)

Whether the candle is created before data adding.

protected override bool IsCandleFinishedBeforeChange(ICandleBuilderSubscription subscription, HeikinAshiCandleMessage candle, ICandleBuilderValueTransform transform)

Parameters

subscription ICandleBuilderSubscription

Subscription.

candle HeikinAshiCandleMessage

Candle.

transform ICandleBuilderValueTransform

The data source transformation.

Returns

bool

true if the candle should be finished. Otherwise, false.

UpdateCandle(ICandleBuilderSubscription, HeikinAshiCandleMessage, ICandleBuilderValueTransform)

To update the candle data.

protected override void UpdateCandle(ICandleBuilderSubscription subscription, HeikinAshiCandleMessage candle, ICandleBuilderValueTransform transform)

Parameters

subscription ICandleBuilderSubscription

Subscription.

candle HeikinAshiCandleMessage

Candle.

transform ICandleBuilderValueTransform

The data source transformation.