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
IExchangeInfoProviderThe exchange boards provider.
Methods
CreateCandle(ICandleBuilderSubscription, ICandleBuilderValueTransform)
To create a new candle.
protected override TickCandleMessage CreateCandle(ICandleBuilderSubscription subscription, ICandleBuilderValueTransform transform)
Parameters
subscription
ICandleBuilderSubscriptionSubscription.
transform
ICandleBuilderValueTransformThe 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
ICandleBuilderSubscriptionSubscription.
candle
TickCandleMessageCandle.
transform
ICandleBuilderValueTransformThe data source transformation.