Skip to main content
Help›Knowledge base›Error Messages
Error Messages

"Invalid stops" (retcode 10016) — why a stop-loss update is rejected

What the MT5 code 10016 means, where you see it, and why PipSync does not send the same stop again.

What does "INVALID_STOPS" (retcode 10016) mean when my stop-loss update is rejected?

Retcode 10016, TRADE_RETCODE_INVALID_STOPS, means your broker refused the stop-loss or take-profit level in a request. MetaQuotes lists it as "Invalid stops in the request". Usually the level sits too close to the market price or on the wrong side of it. PipSync does not resend the same request, because the broker would refuse it again.

Where you see it

  • A new order: the signal's row in Trading Hub → Execution Log carries the broker's line, such as retcode=10016. The signal card says "the broker refused the stop-loss or take-profit levels (invalid stops), no order was placed."
  • A stop move on an open trade (the provider's "move SL to BE", an edit, or the automatic break-even after TP1): you get the notification "Stop-loss move refused by the broker" with the instrument. It says the broker refused the new level, possibly because it was too close to the current price or on the wrong side of it, and that the trade keeps its previous stop.

Why the broker refuses a level

MetaTrader brokers set a minimum distance between the market price and a stop. MetaQuotes describes it as the "minimal indention in points from the current close price to place Stop orders" (SYMBOL_TRADE_STOPS_LEVEL) and a separate freeze level, "distance to freeze trade operations in points" (SYMBOL_TRADE_FREEZE_LEVEL). Fast markets such as gold around news make a stop that was valid a minute ago invalid now. A break-even stop at the entry price is refused when the market is already at or past the entry.

Sources: MQL5 reference, trade server return codes and MQL5 reference, symbol properties.

What PipSync does

  • A new order whose levels the broker refuses is not placed; the signal card says so.
  • A stop move that the broker refuses with 10016 is not sent again. It would be refused again; only a new instruction or a new edit from the provider is tried.
  • Nothing is closed for you. Your trade stays open with its previous stop.

What you can do

  1. Open the position under Trading Hub → Positions and check where the price is now.
  2. In MT5, open Market Watch, right-click the symbol, choose Specification and read the Stops level of your broker.
  3. Move the stop yourself at your broker to a level that is far enough from the price and on the loss side of it.
  4. If it happens on every signal, compare the symbol's stops level with the distances your provider uses, or message us in the support chat with the symbol, your broker and the exact error text.

Related: Break-even, partial closes and trailing stops and "Invalid volume" — what to change.

Was this helpful?

Still stuck?

Open a ticket and we will pick it up from your account context.