how is it possible?

 
the attached  EA i want  it  to be placing  buy and sell at the same time when new bar formed and i want the orders to be more than three orders ( i.e buy and sell in three places ) but it is not doing so it only place buy and sell one even sometime it place only one order. pls  what is going wrong with the code? Somebody help.

            
Files:
nolmore.mq4  3 kb
 

O
Because of this

if (OrdersTotal()==0){


any current open order/s will stop any more ordering
Also, if you are on a sub-pip account, your Slippage of 3 is too small
So add this to your externs

extern int Slippage = 50;


and change this in the code

    OrderSend(Symbol(), OP_BUY, lots ,Ask, Slippage,0,0, "femi", MAGIC, 0, Blue);
    OrderSend(Symbol(), OP_SELL, lots ,Bid, Slippage,0,0, "femi", MAGIC, 0, Red);


Good Luck
-BB-

 
Thanks for being there for me always. please then what should i change   : ( if (OrdersTotal()==0){ ) so it can be placing more orders
 

O
Look for function ActiveTradesForMagicNumber in this EA https://www.mql5.com/en/code/8714
Shows you how to count open orders
-BB-

Reason: