RAM - Memeory Usage

 
Two possible flaws in current MT4 Terminal.

1) It appears that MetaTrader 4 Terminal M1 tick data received is stored
in RAM. How fast memory is used is proportional to number of pairs
running . When MT4 is re-started, this memory stored tick data is
written to .hst file and memory usage drops. So, the more pairs that
are running, the faster the memory is used. Also, downloaded History
Center data is also temporarily stored in memory. After MT4 is closed,
data is written to .hst file and memory usage drops. I also see memory
usage increase when i open History Center. I believe this is due to
calculating other timeframes from stored received M1 tick data. This may
be a flaw in MT4. It should routinely auto write M1 tick data to .hst
file to reduce memory usage. The only way I see to managed memory
usage is to routinely re-start MT4 terminal.

2) People running the Strategy Tester could really use up memory fast
when downloading History Center data. The more pairs that is being
tested the higher the memory usage will be due to when History Center
is opened, all previously tested pairs will be recalculated. To stop
this, all .hst files need to be deleted or MT4 Terminal needs to be re-
installed.

If i am correct, you can see this in the Task Manager, Processes tab.
When you open the MT4 History Center the memory usage for that MT4
Terminal increases.
 

Hi

Yes I have had MT4 nicking all the memory at various times. You have to be careful about deleting the history files though because the last time I did it the charts remained blank no matter what I did so I had to install it from scratch. I previously posted here https://forum.mql4.com/10197 a good example of memory hogging that occurs when I have been doing lots of back testing. The example took all the system resources, 100%, and the computer ground to a halt. Mind you I haven't seen this memory problem recently on the later releases.

Reason: