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

MQL4 Aconselhamento

Termos de Referência

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.


Respondido

1
Desenvolvedor 1
Classificação
(5)
Projetos
7
29%
Arbitragem
1
0% / 100%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(114)
Projetos
154
47%
Arbitragem
2
0% / 50%
Expirado
4
3%
Livre
3
Desenvolvedor 3
Classificação
(26)
Projetos
34
26%
Arbitragem
7
14% / 43%
Expirado
7
21%
Livre
4
Desenvolvedor 4
Classificação
(77)
Projetos
133
50%
Arbitragem
5
80% / 0%
Expirado
6
5%
Livre
5
Desenvolvedor 5
Classificação
(62)
Projetos
140
46%
Arbitragem
19
42% / 16%
Expirado
32
23%
Livre
6
Desenvolvedor 6
Classificação
(28)
Projetos
30
37%
Arbitragem
0
Expirado
0
Livre

Informações sobre o projeto

Orçamento
30 - 40 USD
IVA (21%): 6.3 - 8.4 USD
Total: 36.3 - 48.4 USD
Desenvolvedor
27 - 36 USD
Prazo
de 1 para 2 dias