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
Remarks
Initializes a new instance of the BiggerTimeFrameCandleCompressor.
Constructors
BiggerTimeFrameCandleCompressor(MarketDataMessage, ICandleBuilder, DataType)
Compressor of candles from smaller time-frames to bigger.
public BiggerTimeFrameCandleCompressor(MarketDataMessage message, ICandleBuilder builder, DataType buildFrom)
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.
buildFrom
DataTypeWhich market-data type is used as a source value.
Remarks
Initializes a new instance of the BiggerTimeFrameCandleCompressor.
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()