Objects in MQL5
Anja Einbecker:
The last line gives me the error, if I exclude that line from my code it works.
if(aoi.type == AOI_UP && iLow(_Symbol,PERIOD_M1,i) < aoi.lowAoi) aoiMn.Delete(j); else if(aoi.type == AOI_DOWN && iHigh(_Symbol,PERIOD_M1,i) > aoi.highAoi) aoiMn.Delete(j);Don't access a pointer (aoi, in this case) after you deleted the object it points to.
Hello,
I´m stuck with my code. I always get the "invalid pinter access" failure and I can´t fix it. Would be great if someone can see where I´m going wrong.
The last line gives me the error, if I exclude that line from my code it works.
Thank you
Anja