I have a class library file that contains classes used in the main body of an MT4 EA (MetaEditor 5.00 build 2375). Here I have two classes: The first one {#PivotPoint} has members for index and price of a pivot point. The second class {#ForkDef}
I have a small custom class and I create an array from instances of that class. I need to use a function that adds or updates the elements of that array and I get " Invalid pointer access error" when I call that function. The code is compilable but
I have a custom class in MQL4 and I would like to create a function that returns a instance of it. Here is my code: FracRes* calcFractal(double x, double y, bool x_, bool y_) { FracRes *res = new FracRes(x_, x, y_, y); return res; } class FracRes {