Click or drag to resize

CandleBuilderTCandleMessageCreateCandle Method

To create a new candle.

Namespace:  StockSharp.Algo.Candles.Compression
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
protected virtual TCandleMessage CreateCandle(
	MarketDataMessage message,
	TCandleMessage currentCandle,
	ICandleBuilderValueTransform transform
)

Parameters

message
Type: StockSharp.MessagesMarketDataMessage
Market-data message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).
currentCandle
Type: TCandleMessage
The current candle.
transform
Type: StockSharp.Algo.Candles.CompressionICandleBuilderValueTransform
The data source transformation.

Return Value

Type: TCandleMessage
Created candle.
See Also