How is StopLevel and FreezeLevel limitations determined for Stop Limit orders

 

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"

Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
  • book.mql4.com
Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
 
Suminda Dharmasena:

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"

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…

 
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.