CK
If its an immediate OP_BUY, it must be at the Ask, if OP_SELL must be at the Bid.
For pending orders, the price must have the right number of decimal places, read all on here https://docs.mql4.com/convert/NormalizeDouble
-BB-
Try to normalize the value according to the digits allowed by your server
NormalizeDouble(value,Digits);
O thanks guys.
It works
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
My strategy tells to place an order at 1.4460
but I get error invalid price 1.44602000 for ordersend function.
Why does my price change, and why do I get this error???