Bars.LoadMoreHistory() in backtesting

Created at 08 Oct 2024, 19:44
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!
DU

dudavianna

Joined 07.08.2023

Bars.LoadMoreHistory() in backtesting
08 Oct 2024, 19:44


HI,

I’m using the Bars.OpenTimes.Count method, and I’ve noticed that after the recent updates, it’s only returning 200 records when I use it in the backtesting. Additionally, I’ve observed that the Bars.LoadMoreHistory() method doesn’t work in the backtesting too.

However, when I use it in the demo account, the cBot loads a much larger index, and Bars.LoadMoreHistory() works.

Do you happen to know if there’s a limit imposed on backtesting?

Tks,

Eduardo


@dudavianna
Replies

PanagiotisCharalampous
09 Oct 2024, 05:32

Hi there,

Bars.LoadMoreHistory() does not work for backtesting at the moment. This feature will be added in a future release of cTrader.

Best regards,

Panagiotis


@PanagiotisCharalampous

dudavianna
09 Oct 2024, 18:12

RE: Bars.LoadMoreHistory() in backtesting

PanagiotisCharalampous said: 

Hi there,

Bars.LoadMoreHistory() does not work for backtesting at the moment. This feature will be added in a future release of cTrader.

Best regards,

Panagiotis

Thanks a lot!

One additional question: Previously, the Bars.OpenTimes.Count method brought more than 3,000 candles to the index. Today, I notice it is only bringing 200.

Has there been any change?


@dudavianna

PanagiotisCharalampous
10 Oct 2024, 06:57

RE: RE: Bars.LoadMoreHistory() in backtesting

dudavianna said: 

PanagiotisCharalampous said: 

Hi there,

Bars.LoadMoreHistory() does not work for backtesting at the moment. This feature will be added in a future release of cTrader.

Best regards,

Panagiotis

Thanks a lot!

One additional question: Previously, the Bars.OpenTimes.Count method brought more than 3,000 candles to the index. Today, I notice it is only bringing 200.

Has there been any change?

No there was no change. 


@PanagiotisCharalampous