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