Deleting a pending order - page 2

 
         OrderSend(Symbol(), OP_BUYSTOP, lots, Ask + INCREMENT * Point, 3, Ask + INCREMENT * Point - stop_loss * Point, Bid + INCREMENT * Point + take_profit * Point, IDENT, MAGIC, 0, Blue);
         OrderSend(Symbol(), OP_SELLSTOP, lots, Bid - INCREMENT * Point, 3, Bid - INCREMENT * Point + stop_loss * Point, Ask - INCREMENT * Point - take_profit * Point, IDENT, MAGIC, 0, Red);
  1. Check your return codes (OrderSend) What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
  2. Are your books one column but two feet wide? No because that is unreadable. They are 6 inches, sometimes two columns, so you can read it easily. So should be your code. I'm not going to go scrolling (or moving my eyes) back and forth trying to read it.
  3. If you ever change from a 5 digit broker to a 4 digit one (some brokers have both types) your code breaks. Problems with a calculation - MQL4 forum
 
Aidas:
Yes, now it works correct (I spent on this two weeks and already lost hope :) ). Thank you for quick and right answer, Keith Watford .

Aidas, kindly share your EA here.
 
Aidas:
Yes, now it works correct (I spent on this two weeks and already lost hope :) ). Thank you for quick and right answer, Keith Watford.

Please ! Send me this EA 


Thanks ! 

 
eaxttwopendingorders V2 Eurusd 1 mn
Reason: