Forum

Does ArrayResize allocate additional objects using the default constructor?

I get a memory leak when working on my new indicator. At the beginning I allocate an array of my Object which later gets resized and filled. Apparently there are exactly as many objects leaking as the resize operation. How do I clean up and/or initialize my array correctly? MyObject instance[]; int

First attempt to code mql5 migrating from mql4. Issues.

This is my first attempt to write a code in mql5 and there are a few issues I am facing. I wanted to write a simple indicator that displays a red block if Pair1 bar is bullish and a green block if it is bearish. Problem #1: the label and arrow settings are not applied to the 2nd pair buffer. it