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