mqlmaster4 : I am trying to post a pending Orderasync on a DEMO account but no matter i do the error persist. The symbol specification says Order Expiration : TODAY Here goes my code and tries: I don´t need to set expiration. I am setting it cause i got error. Using OrderOpen it works OK(without expiration set). Any hint?
See the following topic about B3: Retcode Error 10022 MT5 Robot
Thanks.
Now it is returning 10015 Invalid Price for ALL combinations of price/sl/tp.
I am guessing this procedure does not accept orders of type ORDER_TYPE_BUY_STOP_LIMIT or ORDER_TYPE_SELL_STOP_LIMIT.
For other pending order types it´s working.
mqlmaster4 # : Thanks. Now it is returning 10015 Invalid Price for ALL combinations of price/sl/tp. I am guessing this procedure does not accept orders of type ORDER_TYPE_BUY_STOP_LIMIT or ORDER_TYPE_SELL_STOP_LIMIT. For other pending order types it´s working.
See guidance on ORDER_TYPE_BUY_STOP_LIMIT and ORDER_TYPE_SELL_STOP_LIMIT: Error 10022 with pending order WINV16
Thank you very much!
It´s now working with both ORDER_TYPE_BUY_STOP_LIMIT and ORDER_TYPE_SELL_STOP_LIMIT.
Salvou!. Valeu!
mqlmaster4 #: Thank you very much! It´s now working with both ORDER_TYPE_BUY_STOP_LIMIT and ORDER_TYPE_SELL_STOP_LIMIT. Salvou!. Valeu!
You are welcome!! 👍😊

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am trying to post a pending Orderasync on a DEMO account but no matter i do the error persist.
The symbol specification says Order Expiration : TODAY
Here goes my code and tries:
I don´t need to set expiration. I am setting it cause i got error.
Using OrderOpen it works OK(without expiration set).
Any hint?