Forum

Help me with a simple code that doesn't work, please !

Hello everybody! I'm a new user of this forum and I'm trying to learn MQL4 to build a my own EA, but now I have a little problem with my code. The MT4 doesn't read this part : " int H = OrdersTotal(); //CORREZIONE BUY if (H>0) { OrderSelect(H-1,SELECT_BY_POS); if(OrderType()==0 &&

Help me with a simple code that doesn't work, please !

Hello everybody! I'm a new user of this forum and I'm trying to learn MQL4 to build a my own EA, but now I have a little problem with my code. The MT4 doesn't read this part : " int H = OrdersTotal(); //CORREZIONE BUY if (H>0) { OrderSelect(H-1,SELECT_BY_POS); if(OrderType()==0 &&