Download MetaTrader 5

Deleting a pending order - page 2

To add comments, please log in or register
whroeder1
16111
whroeder1  
         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
kugan8588
5
kugan8588  
Aidas:
Yes, now it works correct (I spent on this two weeks and already lost hope :) ). Thank you for quick and right answer, GumRai.

Aidas, kindly share your EA here.
12
To add comments, please log in or register