Class BiggerTimeFrameCandleCompressor
- Namespace
- StockSharp.Algo.Candles
- Assembly
- StockSharp.Algo.dll
Compressor of candles from smaller time-frames to bigger.
public class BiggerTimeFrameCandleCompressor : ICandleBuilderSubscription
- Inheritance
-
BiggerTimeFrameCandleCompressor
- Implements
- Inherited Members
- Extension Methods
Constructors
BiggerTimeFrameCandleCompressor(MarketDataMessage, ICandleBuilder)
Initializes a new instance of the BiggerTimeFrameCandleCompressor.
public BiggerTimeFrameCandleCompressor(MarketDataMessage message, ICandleBuilder builder)
Parameters
message
MarketDataMessageMarket-data message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).
builder
ICandleBuilderThe builder of candles of TimeFrameCandleMessage type.
Properties
CurrentCandle
The current candle.
public CandleMessage CurrentCandle { get; set; }
Property Value
Message
Market-data message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).
public MarketDataMessage Message { get; }
Property Value
VolumeProfile
Volume profile.
public VolumeProfileBuilder VolumeProfile { get; set; }
Property Value
Methods
Process(CandleMessage)
To process the new data.
public IEnumerable<CandleMessage> Process(CandleMessage message)
Parameters
message
CandleMessageThe message contains information about the time-frame candle.
Returns
- IEnumerable<CandleMessage>
A new candles changes.
Reset()
Reset state.
public void Reset()