Click or drag to resize

BarChartTraderGetHistoricalCandles Method (Security, Type, Object, DateTime, DateTime, 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,
	DateTime from,
	DateTime to,
	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).
from
Type: SystemDateTime
Begin period.
to
Type: SystemDateTime
End period.
isSuccess
Type: SystemBoolean
Whether all data were obtained successfully or the download process has been interrupted.

Return Value

Type: IEnumerableCandleMessage
Historical candles.
See Also