Click or drag to resize

CandleHelperTryGetCandlesBuildFrom Method

Try get suitable market-data type for candles compression.

Namespace:  StockSharp.Algo.Candles
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static Nullable<MarketDataTypes> TryGetCandlesBuildFrom(
	this IMessageAdapter adapter,
	MarketDataMessage subscription,
	CandleBuilderProvider provider
)

Parameters

adapter
Type: StockSharp.MessagesIMessageAdapter
Adapter.
subscription
Type: StockSharp.MessagesMarketDataMessage
Subscription.
provider
Type: StockSharp.Algo.Candles.CompressionCandleBuilderProvider
Candle builders provider.

Return Value

Type: NullableMarketDataTypes
Which market-data type is used as a source value. is compression is impossible.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMessageAdapter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also