Solution needed to keep the number of bars on chart constant (to prevent memory overload)

2020.06.27 Consultation

Specification

The EA I built runs into a memory issue. EA works with several timeframes at the same time, including M1, and runs on many charts in parallel. The memory the MT4 occupies increases gradually, reason for which I need to restart the platform regularly to free up memory.

I believe the problem is generated by the accumulation of bars. I have set limits in the platform (tools/options) to the max number of bars on chart (and in history), but as far as I understand these limits apply only at the initialisation, after which bars keep being added up irrespective of these limits.

So, I need a solution to make the EA or the MT4 platform “forget” the old bars and keep the number of bars in its memory constant to a small number (I don’t need more than the latest 1.000 bars back for each of the timeframes).  

This is more a consultancy job, but, depending on the solution found, it may require you to also provide the actual code of the solution to me.

Very good English is required to ensure good communication.


Responded

1
Developer 1
2020.06.27
Rating
5
(4)
Projects
5
20%
Arbitration
0
Overdue
0
Working
2
Developer 2
2020.06.27
Rating
4.98
(104)
Projects
143
48%
Arbitration
1
0% / 0%
Overdue
5
3%
Free
3
Developer 3
2020.06.27
Rating
4.88
(16)
Projects
20
30%
Arbitration
3
33% / 67%
Overdue
6
30%
Working
4
Developer 4
2020.06.28
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Loaded
5
Developer 5
2020.06.29
Rating
4.92
(61)
Projects
137
45%
Arbitration
18
39% / 11%
Overdue
38
28%
Loaded

Project information

Budget
30 - 40 USD
VAT (21%): 6.3 - 8.4 USD
Total: 36.3 - 48.4 USD
For the developer
27 - 36 USD
Deadlines
from 1 to 2 day(s)