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

MQL4 相談

指定

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.


応答済み

1
開発者 1
評価
(5)
プロジェクト
7
29%
仲裁
1
0% / 100%
期限切れ
0
2
開発者 2
評価
(114)
プロジェクト
154
47%
仲裁
2
0% / 50%
期限切れ
4
3%
3
開発者 3
評価
(26)
プロジェクト
34
26%
仲裁
7
14% / 43%
期限切れ
7
21%
4
開発者 4
評価
(76)
プロジェクト
129
49%
仲裁
5
80% / 0%
期限切れ
6
5%
5
開発者 5
評価
(62)
プロジェクト
140
46%
仲裁
19
42% / 16%
期限切れ
32
23%
6
開発者 6
評価
(28)
プロジェクト
30
37%
仲裁
0
期限切れ
0

プロジェクト情報

予算
30 - 40 USD
VAT(付加価値税) (21%): 6.3 - 8.4 USD
合計: 36.3 - 48.4 USD
開発者用
27 - 36 USD
締め切り
最低 1 最高 2 日