Table of Contents

Class VolumeCandleBuilder

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

The builder of candles of VolumeCandleMessage type.

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

Constructors

VolumeCandleBuilder(IExchangeInfoProvider)

Initializes a new instance of the VolumeCandleBuilder.

public VolumeCandleBuilder(IExchangeInfoProvider exchangeInfoProvider)

Parameters

exchangeInfoProvider IExchangeInfoProvider

The exchange boards provider.

Methods

CreateCandle(ICandleBuilderSubscription, ICandleBuilderValueTransform)

To create a new candle.

protected override VolumeCandleMessage CreateCandle(ICandleBuilderSubscription subscription, ICandleBuilderValueTransform transform)

Parameters

subscription ICandleBuilderSubscription

Subscription.

transform ICandleBuilderValueTransform

The data source transformation.

Returns

VolumeCandleMessage

Created candle.

IsCandleFinishedBeforeChange(ICandleBuilderSubscription, VolumeCandleMessage, ICandleBuilderValueTransform)

Whether the candle is created before data adding.

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

Parameters

subscription ICandleBuilderSubscription

Subscription.

candle VolumeCandleMessage

Candle.

transform ICandleBuilderValueTransform

The data source transformation.

Returns

bool

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