# MT5 error 10016: Invalid stops in the request

> What MT5 error 10016 (Invalid stops in the request) means when ZB Connector runs a command: causes, fixes and how to confirm.

Source: https://zb-connector.com/docs/troubleshooting/errors/10016/

MT5 reports trade return code **10016**, “Invalid stops in the request”. The broker refused the stop loss or take profit in your command.

## 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

1.  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.
2.  The stop is closer to the current price than the broker allows for this symbol.
3.  The EA input **Stop level mode** is set to pips or ticks, so `sl` and `tp` were read as distances from the price instead of price levels. A price such as `1.0800` then means a distance of 1.08 pips.
4.  The values were typed in the wrong unit, for example a distance sent to `moveStops`, which always reads price levels.

## Fix

1.  Compare `sl` and `tp` with the current price and the direction of the trade.
2.  Look up the symbol’s minimum stop distance in its specification in MT5 and keep your stops further away.
3.  Check the Stop level mode input. With price (the default), send price levels; with pips or ticks, send distances.
4.  For `moveStops`, always send price levels.

## 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?

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](mailto:contact@zb-connector.com?subject=Help%3A%20MT5%20error%2010016%3A%20Invalid%20stops%20in%20the%20request&body=Page%20I%20followed%3A%20https%3A%2F%2Fzb-connector.com%2Fdocs%2Ftroubleshooting%2Ferrors%2F10016%2F%0A%0AFirst%20checkpoint%20that%20failed%20\(1-6\)%3A%0A%0ATime%20of%20the%20alert%20\(with%20time%20zone\)%3A%0A%0ATradingView%20alert%20log%2C%20Webhook%20status%3A%0A%0AZB%20Connector%20Command%20History%20status%20\(and%20the%20reason%20shown%20when%20you%20hover%20Failed\)%3A%0A%0ALast%20lines%20of%20the%20MT5%20Experts%20log%3A%0A%0AAlert%20message%20\(replace%20the%20license%20key%20with%20YOUR_LICENSE_KEY\)%3A%0A%0A%0A%0ADo%20not%20send%20your%20license%20key%2C%20passwords%20or%20full%20screenshots%20of%20the%20EA%20panel%20\(it%20shows%20the%20key\).)(contact@zb-connector.com).

## Related

-   [All MT5 errors](https://zb-connector.com/docs/troubleshooting/errors/)
-   [Find where an alert stopped](https://zb-connector.com/docs/troubleshooting/find-where-it-stopped/)
-   [Commands overview](https://zb-connector.com/docs/commands/overview/)
-   [long command](https://zb-connector.com/docs/commands/long/)
-   [short command](https://zb-connector.com/docs/commands/short/)
-   [moveStops command](https://zb-connector.com/docs/commands/movestops/)
