Click or drag to resize

BarChartTraderGetHistoricalCandles Method (Security, Type, Object, Int64, Boolean)

To get historical candles.

Namespace:  StockSharp.BarChart
Assembly:  StockSharp.BarChart (in StockSharp.BarChart.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public IEnumerable<CandleMessage> GetHistoricalCandles(
	Security security,
	Type candleMessageType,
	Object arg,
	long count,
	out bool isSuccess
)

Parameters

security
Type: StockSharp.BusinessEntitiesSecurity
The instrument for which you need to get candles.
candleMessageType
Type: SystemType
The candle message type.
arg
Type: SystemObject
The candle parameter (for example, time-frame).
count
Type: SystemInt64
Maximum ticks count.
isSuccess
Type: SystemBoolean
Whether all data were obtained successfully or the download process has been interrupted.

Return Value

Type: IEnumerableCandleMessage
Historical candles.
See Also