Open Pending Order After Another Pending

 
Hello everyone, I would like to know how I can to send another pending order after the previous order becomes a real order.

Look the example
extern double Distance = 20; 
OrderSend(Symbol(), OP_BUYLIMIT, Lot, Ask-Distance*Point, 1, 0, 0, "comment", Magic, 0, CLR_NONE);   


When opening a BUY order, I'd like  to send a new pending BUY LIMIT order  .

I place a pending order, it becomes a real order, it sends another pending  order   and so on.

OP_BUYLIMIT >> OP_BUY  >> SEND  OP_BUYLIMIT >> OP_BUY  >>> SEND  OP_BUYLIMIT  . . . . 
 
Fernando Santos: I would like to know how I can to send another pending order after the previous order becomes a real order.
  1. Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. You call OrderSend.

  3. Don't double post!
              General rules and best pratices of the Forum. - General - MQL5 programming forum

Reason: