Historical Trendbars

Created at 14 Nov 2020, 00:42
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
GE

george.secillano

Joined 12.10.2020

Historical Trendbars
14 Nov 2020, 00:42


Hi, 

I'm trying to retrieve historical trendbars for the last 3 years on the H1 timeframe.  For each request I don't exceed 34 weeks between fromTime and toTime. however, the API only returns data starting from April 2020.

Is there no way to retrieve data beyond that?

Example:

From: Sun Jan 01 00:00:00 PST 2017
To: Sun Aug 27 00:00:00 PDT 2017

 


@george.secillano
Replies

george.secillano
14 Nov 2020, 01:06

RE:

george.secillano said:

Hi, 

I'm trying to retrieve historical trendbars for the last 3 years on the H1 timeframe.  For each request I don't exceed 34 weeks between fromTime and toTime. however, the API only returns data starting from April 2020.

Is there no way to retrieve data beyond that?

Example:

From: Sun Jan 01 00:00:00 PST 2017
To: Sun Aug 27 00:00:00 PDT 2017

 

It looks like it's broker-specific behaviour.  Using the cTrader demo account, I was able to retrieve historical bars.  Can someone confirm this?


@george.secillano

PanagiotisCharalampous
16 Nov 2020, 09:40

Hi George, 

Indeed, you need to check the availability of historical data with the broker.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous