Suminda Dharmasena:
You can double check your stoploos/takeprofit . Define a variable upper/lower stop level with MarketInfo MODE_STOPLEVEL … and restrict you stoploss/take profit to take values between these variables and order open price… ex: if Stoploss<= lowerstoplevel Stoploss=lowerstoplevel + _Point…The following document: https://book.mql4.com/appendix/limits does not give the limitation imposed for Stop Limit orders.
I am using MT5 and I an getting a lot of "invalid order" and "invalid stop" errors. I suspect one of the reasons might be the above though I am using MT5.
I want to double check is the limits are violated including the limitation imposed for Stop Limit orders.
What could be other reasons to get:
- "invalid order"
- "invalid stop"
Stop and freeze levels are zones around the current ask/bid. This is to reduce market book manipulation.
As long as your orders are outside this range, you can change them as you like.
I suspect rather your issue is coming from >invalid< values in your order request.
These values need to be normalized to the price quotation of the symbols specifications.
Check the forum on such.
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
The following document: https://book.mql4.com/appendix/limits does not give the limitation imposed for Stop Limit orders.
I am using MT5 and I an getting a lot of "invalid order" and "invalid stop" errors. I suspect one of the reasons might be the above though I am using MT5.
I want to double check is the limits are violated including the limitation imposed for Stop Limit orders.
What could be other reasons to get:
- "invalid order"
- "invalid stop"