Is it possible to download 100% of the history for backtesting?

 
Please, can anyone tell me if it is possible to download and save the entire history of an asset downloaded to the computer within MetaTrader5?

Whenever I do a "definitive" backtest, I always do it with the "entire history", but it always takes the longest to load and when I go to the "Journal" tab, it shows that the delay is due to the fact that the download is still being done, especially when it comes to the M1 timeframe.

So with that, I started researching the possibility of downloading 100% of the history of an asset that I am backtesting with the intention of reducing all this delay, but I am not having any success in my research, so I am asking for your help.

Thank you. :)
Testing trading strategies on real ticks
Testing trading strategies on real ticks
  • www.mql5.com
The article provides the results of testing a simple trading strategy in three modes: "1 minute OHLC", "Every tick" and "Every tick based on real ticks" using actual historical data.
Files:
Capturar.PNG  3 kb
 
Samuel Cavalcanti Costa:
Please, can anyone tell me if it is possible to download and save the entire history of an asset downloaded to the computer within MetaTrader5?

Whenever I do a "definitive" backtest, I always do it with the "entire history", but it always takes the longest to load and when I go to the "Journal" tab, it shows that the delay is due to the fact that the download is still being done, especially when it comes to the M1 timeframe.

So with that, I started researching the possibility of downloading 100% of the history of an asset that I am backtesting with the intention of reducing all this delay, but I am not having any success in my research, so I am asking for your help.

MT5 does always download entire history of every asset used in the market watch and opened chart.

The delay you have is probably because the backtests require the entire history to be transferred to the tester agents - this will require some time - the more the range of dates in the tester and the smaller timeframe - the longer time this process will take. This is inevitable. This is a physical/real world.

 
Stanislav Korotky #:

MT5 does always download entire history of every asset used in the market watch and opened chart.

The delay you have is probably because the backtests require the entire history to be transferred to the tester agents - this will require some time - the more the range of dates in the tester and the smaller timeframe - the longer time this process will take. This is inevitable. This is a physical/real world.

I understand, my friend... that's exactly why I thought there was a way to have everything already downloaded so that the tester would have everything available without having to transfer or download it or whatever... I noticed 2 things:

- When I do the backtest with the "entire history", I can apply much more significant improvements than when I only use recent periods

- Every time I need to do the backtest with the "entire history", it's the longest operation of all, once it took 40 minutes to download a xauusd, just to give you an idea.

I'm still looking for new ways to do this... anyway, thank you very much for answering me.

 
Samuel Cavalcanti Costa #:

I understand, my friend... that's exactly why I thought there was a way to have everything already downloaded so that the tester would have everything available without having to transfer or download it or whatever... I noticed 2 things:

- When I do the backtest with the "entire history", I can apply much more significant improvements than when I only use recent periods

- Every time I need to do the backtest with the "entire history", it's the longest operation of all, once it took 40 minutes to download a xauusd, just to give you an idea.

I'm still looking for new ways to do this... anyway, thank you very much for answering me.

You need to provide the logs - 40 minutes is unreal.

 
Stanislav Korotky #:

You need to provide the logs - 40 minutes is unreal.

Hi my friend :)


It's was M1 timeframe with "entire history"... understand now my question? :(

 

@Samuel Cavalcanti Costa, I set my development installation of MT5 ==>  Tools ==> Options ==> Charts ==> Max bars in chart: Unlimited

In this way, all history for the open chart is preloaded upon startup of MT5. I don't know 100% if this will fix your issue because I've never had to wait 40 minutes for any history download. I'm thinking that the Tester loading from the main terminal has to be faster than the Tester downloading straight from a server. Just be aware that your computer has to be capable of handling unlimited history. It can be CPU intensive, and that 40 minutes makes me wonder...

 
hey im here to share on of my thoughts i think it not possible cause even if tested for all markets won't see the end of the test depending on the network you are using can make a test for 7 years me i have tested my EA from 2017-2024 last year. it not possible or faster computer some pc are slow they depending on you computer. thanks 
 
Ryan L Johnson #:
In this way, all history for the open chart is preloaded upon startup of MT5. I don't know 100% if this will fix your issue because I've never had to wait 40 minutes for any history download. I'm thinking that the Tester loading from the main terminal has to be faster than the Tester downloading straight from a server. Just be aware that your computer has to be capable of handling unlimited history. It can be CPU intensive, and that 40 minutes makes me wonder...

So my friend, in this case, the problem is possibly that my laptop is too "simple"?


My laptop: HP i5, 8gb, 250gb

 
Lungile Mbanjwa #:
hey im here to share on of my thoughts i think it not possible cause even if tested for all markets won't see the end of the test depending on the network you are using can make a test for 7 years me i have tested my EA from 2017-2024 last year. it not possible or faster computer some pc are slow they depending on you computer. thanks 

So my friend, in this case, the problem is possibly that my laptop is too "simple"?


My laptop: HP i5, 8gb, 250gb

 
Samuel Cavalcanti Costa #:

So my friend, in this case, the problem is possibly that my laptop is too "simple"?


My laptop: HP i5, 8gb, 250gb

My guess is yes.

My oldest machine is a Samsung laptop, i3, 8GB, 380GB, CPU running at a measly 2.53GHz. Windows 7 Home Premium 2009! This thing is ancient in tech years. Yours likely isn't far behind in age. Although my Samsung runs the main MT5 terminal without any issues, I would never even try to run a backtest on it.

MQ continues to update MT5 with various additional features which, over time, increases the load on a computer (specifically, its CPU). Everything ran fine on old machines at the advent of MT5, but we're way beyond that now.

Sorry to be the bearer of bad news.