Table of Contents

Class TickCandleBuilder

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

The builder of candles of TickCandleMessage type.

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

Constructors

TickCandleBuilder(IExchangeInfoProvider)

Initializes a new instance of the TickCandleBuilder.

public TickCandleBuilder(IExchangeInfoProvider exchangeInfoProvider)

Parameters

exchangeInfoProvider IExchangeInfoProvider

The exchange boards provider.

Methods

CreateCandle(ICandleBuilderSubscription, ICandleBuilderValueTransform)

To create a new candle.

protected override TickCandleMessage CreateCandle(ICandleBuilderSubscription subscription, ICandleBuilderValueTransform transform)

Parameters

subscription ICandleBuilderSubscription

Subscription.

transform ICandleBuilderValueTransform

The data source transformation.

Returns

TickCandleMessage

Created candle.

IsCandleFinishedBeforeChange(ICandleBuilderSubscription, TickCandleMessage, ICandleBuilderValueTransform)

Whether the candle is created before data adding.

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

Parameters

subscription ICandleBuilderSubscription

Subscription.

candle TickCandleMessage

Candle.

transform ICandleBuilderValueTransform

The data source transformation.

Returns

bool

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