Hello ec.... If your goal is to simply place trades, might be simplier only to employ a loop.... This is done with a script, not an ea.... But it may be carried out in a true ea....

are you familar with loops.... Such as under....

Highly imply scripts only.... Might be errors in my code, didn't test it...h

Inserted Code #property show_inputs extern bool Trade = false; int ProfitTarget = 100; int Stoploss = 100; int Slippage = 3; int grid = 10; int buylimit; dual buylimitgrid; //-- int trades = 5; int orders; // ------------------------------------------------------------------ // ------------------------------------------------------------------ int begin() //-- orders = trades - 1; //-- if(Trade OrdersTotal() lt; orders) for(int I=trades;igt;=0;I--) while(true) buylimit = OrderSend(Symbol(),OP_BUYLIMIT,0.01,Ask-(buylimitgrid*Stage),Slippage,Ask-((Stoploss buylimitgrid)*Stage),Ask-((buylimitgrid-ProfitTarget)*Stage),0,0,0,Red); buylimitgrid = buylimitgrid grid if(buylimitlt;=0) Print(Error = ,GetLastError()); else Print(mistake); break; Sleep(3000); return(0);