memory not freed after backtest

 

Hello,

situation:

- MT5 closed: Memory in use 1.65 GB

- Open MT5, close all charts: Memory in use 1.75

- Run backtest: Memory in use: 2.98(during backtest)

-  After backtest: close all charts, clear all logs: Memory in use still 2.98

 

https://www.metatrader5.com/en/terminal/help/algotrading/testing

just wait for 5 minutes:

If testing/optimization is not finished manually (by pressing the Stop button at the settings tab or by closing the client terminal), the processes of used local agents are not unloaded from the computer memory for 5 minutes.

This feature allows avoiding delays connected with preparing the price history and starting the agent processes when re-testing/re-optimizing the same Expert Advisor at the same symbol, timeframe and time period.

Reason: