Weird RAM memory usage when backtesting

 

Hi there,

I've noticed that, when backtesting, MT5 is using very different memory ammount on different symbols.


For example, when I run a backtest from 2018-08-01 to 2020-07-15 for:

- GBPUSD it is using 1025 MB

- AUDJPY it is using 2400 MB


The same goes on for other symbols.

It is the same EA, same indicators, same parameters, same data source, same computer, just the symbol is different.


I already comment portions of code on my EA too see if it was a bad behavior somewhere, but the memory usage did not change. It is related to history data loading.


At the end it is not really an issue if you have all the memory in the world available, but in my case I have 32 logical cores and 64 GB of RAM.

When backtesting  GBPUSD I can use all cores, but for AUDJPY I have to disable 40% of the cores to avoid the usage of all memory and then hard drive reading.


Have you noticed that as well? Any thoughts about it?


Tks.

 

Nevermind, I just figured out that the memory is going on tick data which differs on each symbol. 

I am using Every tick based on real tick, I will try the 1 min OHLC.


Tks.