pascalboy: iI am triying to open pending order 20 pips above the ask price.
- RTFM
int EMIR=OrderSend(Symbol(), OP_BUY, 1, 3, XAL+20*Point, XAL-1000*Point, XAL+500*Point, 0); int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment
3 is not a valid price. XAL+20*Point is not valid slippage - 20*Point is NOT 20 pips on a 5 digit broker.
- You must normalize price for pending orders
- 0 is not a string
- What are Function return values ? How do I use them ? - MQL4 forum
- OP_BUY is not a pending order
OP_BUY is not a pending order
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
iI am triying to open pending order 20 pips above the ask price.
But always gives ordersend error 138 .
how can i solve it?