The "invalid S/L or T/P" error occurs when stop loss or take profit levels are set too close to the market price or placed incorrectly: for buy orders, stop loss must be below and take profit above the price; for sell orders, stop loss above and take profit below.
Common causes
| Cause | Explanation |
|---|---|
| Minimum distance not met | The S/L or T/P level may be too close to the current market price and does not meet the product’s minimum distance requirement. |
| Wrong side for buy order | For a buy order, S/L should be below the current market price and T/P should be above it. |
| Wrong side for sell order | For a sell order, S/L should be above the current market price and T/P should be below it. |
Correct placement
| Order type | Stop loss placement | Take profit placement |
|---|---|---|
| Buy order | Below the current market price | Above the current market price |
| Sell order | Above the current market price | Below the current market price |
Important notes
- Product specifications may include a minimum stop level.
- The required distance may vary by product.
- Check the product specification in MT5 before setting S/L or T/P.