- Don't understand Error 138's description
- error 138 in backtesting, please take a look into this code
- Error 138 and modify order
You are probably using the wrong price for the operation!
Remember that Buy orders open at the Ask price and close at the Bid price, while Sell Orders open at the Bid price but close at the Ask price.
If that does not solve your problem, then post the code for analysis.
Check the return value of ordersend.
Thankx, I got it right.
You are probably using the wrong price for the operation!
Remember that Buy orders open at the Ask price and close at the Bid price, while Sell Orders open at the Bid price but close at the Ask price.
If that does not solve your problem, then post the code for analysis.
Your are perfectly correct sir. That was the problem i had. Thank you!
Hell guys i am learning how to create an EA and when I complied my codes i got a warning message saying
return value of 'OrderSend' should be checked
please kindly help i have attached the image bellow
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use