Click or drag to resize

CandleHelperToCandles Method (IEnumerableQuoteChangeMessage, CandleSeries, Level1Fields, Boolean, CandleBuilderProvider)

Построить свечи из коллекции стаканов.

Namespace:  StockSharp.Algo.Candles
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static IEnumerable<CandleMessage> ToCandles(
	this IEnumerable<QuoteChangeMessage> depths,
	CandleSeries series,
	Level1Fields type = Level1Fields.SpreadMiddle,
	bool onlyFormed = true,
	CandleBuilderProvider candleBuilderProvider = null
)

Parameters

depths
Type: System.Collections.GenericIEnumerableQuoteChangeMessage
Стаканы.
series
Type: StockSharp.Algo.CandlesCandleSeries
Серия свечей.
type (Optional)
Type: StockSharp.MessagesLevel1Fields
Тип стаканных данных.
onlyFormed (Optional)
Type: SystemBoolean
Выдавать только сформированные свечи.
candleBuilderProvider (Optional)
Type: StockSharp.Algo.Candles.CompressionCandleBuilderProvider
Провайдер построителей свечей.

Return Value

Type: IEnumerableCandleMessage
Свечек.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableQuoteChangeMessage. 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