MT5 error 10016: Invalid stops in the request
MT5 reports trade return code 10016, “Invalid stops in the request”. The broker refused the stop loss or take profit in your command.
Symptom
Section titled “Symptom”A long, short or moveStops command shows Failed in Command History, and hovering it shows “Invalid stops in the request”. The Experts log has no “Trade placed successfully” line for it.
Causes, most likely first
Section titled “Causes, most likely first”- The stop loss or take profit is on the wrong side of the price. For a buy, the stop loss goes below the price and the take profit above it; for a sell it is the other way round.
- The stop is closer to the current price than the broker allows for this symbol.
- The EA input Stop level mode is set to pips or ticks, so
slandtpwere read as distances from the price instead of price levels. A price such as1.0800then means a distance of 1.08 pips. - The values were typed in the wrong unit, for example a distance sent to
moveStops, which always reads price levels.
- Compare
slandtpwith the current price and the direction of the trade. - Look up the symbol’s minimum stop distance in its specification in MT5 and keep your stops further away.
- Check the Stop level mode input. With price (the default), send price levels; with pips or ticks, send distances.
- For
moveStops, always send price levels.
Confirm it is fixed
Section titled “Confirm it is fixed”Send the corrected command on a demo account. The Experts log shows “Trade placed successfully” (or “SL/TP updated”) and the row in Command History is not marked Failed.
Still stuck?
Section titled “Still stuck?”With these items we can find the failing step quickly. Collect them before you write.
- The number of the first checkpoint that failed and the time of the alert, with your time zone.
- The row from TradingView's alert log, including the Webhook status column.
- The row from Command History (License Details page): status, time, and the reason shown when you hover Failed.
- The last lines of the MT5 Experts log around that time.
- Your alert message as TradingView sends it.
Always remove: your license key (write YOUR_LICENSE_KEY), passwords, and any screenshot where the EA panel shows the key.
Write to support with this checklist filled in(contact@zb-connector.com).
Related
Section titled “Related”Verified for EA v1.9 · dashboard 2026-10-05 · reviewed by Claude Code (owner review pending)
Trading involves substantial risk of loss. ZB Connector is software only; it does not provide investment advice, signals or brokerage services.