Table of Contents

Class RangeCandleBuilder

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

The builder of candles of RangeCandleMessage type.

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

Constructors

RangeCandleBuilder(IExchangeInfoProvider)

Initializes a new instance of the RangeCandleBuilder.

public RangeCandleBuilder(IExchangeInfoProvider exchangeInfoProvider)

Parameters

exchangeInfoProvider IExchangeInfoProvider

The exchange boards provider.

Methods

CreateCandle(ICandleBuilderSubscription, ICandleBuilderValueTransform)

To create a new candle.

protected override RangeCandleMessage CreateCandle(ICandleBuilderSubscription subscription, ICandleBuilderValueTransform transform)

Parameters

subscription ICandleBuilderSubscription

Subscription.

transform ICandleBuilderValueTransform

The data source transformation.

Returns

RangeCandleMessage

Created candle.

IsCandleFinishedBeforeChange(ICandleBuilderSubscription, RangeCandleMessage, ICandleBuilderValueTransform)

Whether the candle is created before data adding.

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

Parameters

subscription ICandleBuilderSubscription

Subscription.

candle RangeCandleMessage

Candle.

transform ICandleBuilderValueTransform

The data source transformation.

Returns

bool

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