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

MQL4 Beratung

Spezifikation

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.


Bewerbungen

1
Entwickler 1
Bewertung
(5)
Projekte
7
29%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
2
Entwickler 2
Bewertung
(114)
Projekte
154
47%
Schlichtung
2
0% / 50%
Frist nicht eingehalten
4
3%
Frei
3
Entwickler 3
Bewertung
(26)
Projekte
34
26%
Schlichtung
7
14% / 43%
Frist nicht eingehalten
7
21%
Frei
4
Entwickler 4
Bewertung
(76)
Projekte
129
49%
Schlichtung
5
80% / 0%
Frist nicht eingehalten
6
5%
Frei
5
Entwickler 5
Bewertung
(62)
Projekte
140
46%
Schlichtung
19
42% / 16%
Frist nicht eingehalten
32
23%
Frei
6
Entwickler 6
Bewertung
(28)
Projekte
30
37%
Schlichtung
0
Frist nicht eingehalten
0
Frei

Projektdetails

Budget
30 - 40 USD
MwSt (21%): 6.3 - 8.4 USD
Insgesamt: 36.3 - 48.4 USD
Für die Entwickler
27 - 36 USD
Ausführungsfristen
von 1 bis 2 Tag(e)