Class HeikinAshiCandleBuilder
- Namespace
- StockSharp.Algo.Candles.Compression
- Assembly
- StockSharp.Algo.dll
The builder of candles of HeikinAshiCandleBuilder type.
public class HeikinAshiCandleBuilder : CandleBuilder<HeikinAshiCandleMessage>, IPersistable, ILogReceiver, ILogSource, ICandleBuilder, IDisposable
- Inheritance
-
HeikinAshiCandleBuilder
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
HeikinAshiCandleBuilder(IExchangeInfoProvider)
Initializes a new instance of the HeikinAshiCandleBuilder.
public HeikinAshiCandleBuilder(IExchangeInfoProvider exchangeInfoProvider)
Parameters
exchangeInfoProvider
IExchangeInfoProviderThe exchange boards provider.
Methods
CreateCandle(ICandleBuilderSubscription, ICandleBuilderValueTransform)
To create a new candle.
protected override HeikinAshiCandleMessage CreateCandle(ICandleBuilderSubscription subscription, ICandleBuilderValueTransform transform)
Parameters
subscription
ICandleBuilderSubscriptionSubscription.
transform
ICandleBuilderValueTransformThe data source transformation.
Returns
- HeikinAshiCandleMessage
Created candle.
IsCandleFinishedBeforeChange(ICandleBuilderSubscription, HeikinAshiCandleMessage, ICandleBuilderValueTransform)
Whether the candle is created before data adding.
protected override bool IsCandleFinishedBeforeChange(ICandleBuilderSubscription subscription, HeikinAshiCandleMessage candle, ICandleBuilderValueTransform transform)
Parameters
subscription
ICandleBuilderSubscriptionSubscription.
candle
HeikinAshiCandleMessageCandle.
transform
ICandleBuilderValueTransformThe data source transformation.
Returns
UpdateCandle(ICandleBuilderSubscription, HeikinAshiCandleMessage, ICandleBuilderValueTransform)
To update the candle data.
protected override void UpdateCandle(ICandleBuilderSubscription subscription, HeikinAshiCandleMessage candle, ICandleBuilderValueTransform transform)
Parameters
subscription
ICandleBuilderSubscriptionSubscription.
candle
HeikinAshiCandleMessageCandle.
transform
ICandleBuilderValueTransformThe data source transformation.