Forum

Objects in MQL5

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. class CAOI : public CObject { public : ENUM_AOI_TYPE type; datetime time; double highAoi; double lowAoi; }; CArrayObj aoiMn; CArrayObj

Array is not working

Hello, I´m not the best in coding but I have a good base. I tried to code an expert adviser and figured out an issue I can not solve by myself. I tried multiple things and modified for hours but it doesn´t seem to work. Maybe someone has the right hint for me. So I loop throug all the candles on a