- MQL5 Cloud Network status change from "ready" to "not used"
- Testing with CLoud: error "no memory in OnTick function"
- MT5 Agents & Output Files
The 4 GB limit per agent in the Cloud is theoretical: in practice, the available memory is lower because each node adds history, buffers, arrays, optimisation results, and several passes can run in parallel.
This is why RAM peaks are reached over long periods, even if your EA does not reach 2 GB locally. Check dynamic arrays, free up indicators/resources, avoid unnecessary copies, and reduce data load or concurrency.
This is not a terminal error, but rather an inherent limitation of the Cloud network, so the solution involves adapting the code and usage to these conditions.
The 4 GB limit per agent in the Cloud is theoretical: in practice, the available memory is lower because each node adds history, buffers, arrays, optimisation results, and several passes can run in parallel.
This is why RAM peaks are reached over long periods, even if your EA does not reach 2 GB locally. Check dynamic arrays, free up indicators/resources, avoid unnecessary copies, and reduce data load or concurrency.
This is not a terminal error, but rather an inherent limitation of the Cloud network, so the solution involves adapting the code and usage to these conditions.
Please update this thread when you have worked out how you avoid the issue and how you "debugged" your ea with the reason why the issue occured, besides decreasing the testing period, of course; because i am guessing that the reason for the error is likely that you get lots of errors during the period that you have removed from your test.
Please update this thread when you have worked out how you avoid the issue and how you "debugged" your ea with the reason why the issue occured, besides decreasing the testing period, of course.
i concur with your observations regarding the multiple timeframes, as i have had similar issue in the past.
As for CopyBuffer can be a very big issue. This comes up in a couple threads every now and then. Developers/coders forget or seem to be unaware that these need to be checked for valid /invalid values before allowing the ea to continue. If you do a searc on this site there is some good threads on this subject, and discussed only recently.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use