Forum

MQL5: Why is this code causing a massive memory leak?

This code is consuming memory like a black hole. It runs up to 10GB RAM within 10 seconds of running. I don't quite understand why. I reserve memory for the arrays, I create 2 MAs, CopyBuffer, then release the MAs aswell as the arrays. This does not happen when I comment out the "CopyBuffer( ... )"

[MT4] Strange problems with custom EA and iCustom

Hello, I've got a Custom Indicator which outputs Entry Signals on the chart. In the Data Window I can see that the Indicator has 5 "Index Buffers" and outputs "Buy", "Sell", "Entry", "SL" and "TP". I want to query this Indicator in an EA via iCustom. The Indicator has several parameters. Mostly