Stops-Level & Min-Distance Checker
Short answer“Error 130 / invalid stops” means your stop-loss or take-profit is closer to price than the broker's minimum distance (the stops level). Convert a stops level in points into a real price distance below, and see how to fix it.
- Minimum SL/TP distance
- In pips (FX)
How to fix error 130 (invalid stops)
- Read
SYMBOL_TRADE_STOPS_LEVELin your EA and never place SL/TP closer than that distance from price. - Add a buffer (e.g. stops level + spread) so a widening spread at news or rollover doesn't invalidate the order.
- For market orders that must set SL/TP, send the order first, then modify SL/TP once the position exists.
- Check the broker's execution model — Instant execution plus a large stops level is the classic error-130 combination.
Frequently asked questions
What causes error 130 (invalid stops)?
Your stop-loss or take-profit is closer to the current price than the broker's minimum stops level, or the price is stale. Widen the distance beyond the stops level plus current spread.
What is the stops level in MetaTrader?
SYMBOL_TRADE_STOPS_LEVEL — the minimum distance (in points) that a pending order or SL/TP must be from the current price.