Download MetaTrader 5

Error 138

To add comments, please log in or register
Erhoz
10
Erhoz  
Hello everyone, I'm new to mql programming, and I'm also using google translator, so sorry for any error, 
I'm having a very serious problem with my code, I'm trying to open a pending order using EA, but it always gives that error 138 , 
there is the code treble with problems for you to see:
Files:
Fernando Carreiro
3952
Fernando Carreiro  
Erhoz:
Hello everyone, I'm new to mql programming, and I'm also using google translator, so sorry for any error, 
I'm having a very serious problem with my code, I'm trying to open a pending order using EA, but it always gives that error 138 , 
there is the code treble with problems for you to see:

You must learn to read documentation and use the search when you have a problem:

138

ERR_REQUOTE

Requote


Runtime Errors - Codes of Errors and Warnings - Standard Constants, Enumerations and Structures - MQL4 Reference
Runtime Errors - Codes of Errors and Warnings - Standard Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
Runtime Errors - Codes of Errors and Warnings - Standard Constants, Enumerations and Structures - MQL4 Reference
Alain Verleyen
Moderator
35041
Alain Verleyen  
Erhoz:
A sell must use BID price to open.
Fernando Carreiro
3952
Fernando Carreiro  
Erhoz:

By the way. The code you show, is for a Market Order not a Pending order!

Yohana Parmi
3527
Yohana Parmi  

Erhoz:

, I'm trying to open a pending order using EA, but it always gives that error 138 , 
there is the code treble with problems for you to see:

Hello,

---

You should use this for pending order

ticket=OrderSend(_Symbol,OP_SELLLIMIT,
To add comments, please log in or register