Skip to content
realtrademaster

How to Fix MT5 Error 10015 (Invalid Price)

MT5 return code 10015 means the trade server rejected the price in the request. Start with the exact symbol and the price your terminal or Expert Advisor actually sent. A price can have the right number of decimal places but still fall between valid ticks. The next check depends on whether the request was a market deal or a pending order.

Steps to check

  1. Match the symbol and quote to the rejected request. In Market Watch, locate the exact broker symbol, including any suffix, and open Specification. Record its digits, tick size and execution mode. For an EA that trades several symbols, use the symbol in the request even if the chart running the EA shows a different one. Capture Bid, Ask and their quote timestamp near the rejection.
  2. Check how the price was built. The symbol's digits describe its display precision. The trade tick size defines the price increment. Compare the submitted price with the allowed increments after the EA's final formatting or rounding. If you change the price in a demo precheck, verify that it still satisfies the original entry condition.
  3. Identify the request type before deciding whether it needs a price. For a market deal on a symbol using MT5 Market Execution, MetaQuotes says the price field is optional. Request Execution and Instant Execution require a price when opening a position. Pending orders specify an entry or trigger level. A stop-limit order also has a separate price for the limit order placed after the trigger.
  4. Check whether a pending price sits on the correct side of the quote and meets the symbol's minimum distance. On typical over-the-counter symbols, a Buy Limit sits below Ask and a Buy Stop sits above it. Exchange execution can handle limit orders differently. Use the exact instrument's rules and check the request before resubmitting.
  5. Log the final request price, order type, quote, tick size and return code together. Inspect the full demo request with OrderCheck. Before retrying a submission with an uncertain outcome, check active orders and deal history. Rebuild the request only if the original setup still applies and the account state permits it.

Worked example

Suppose a demo symbol displays two decimal places and has a tick size of 0.25. A submitted pending price of 100.10 can be displayed, but it is between 100.00 and 100.25, which are on the tick grid. Even a grid-aligned price can fail another check, so the next step is to test the pending order's direction and distance from the current quote.

Frequently asked questions

How does 10015 differ from 10020 and 10021?

Code 10015 identifies an invalid request price. Code 10020 reports a price change and 10021 reports that the server has no quote to process the request.

Can rounding to the symbol's digits fix invalid price?

Rounding to the display digits fixes the number of decimal places. Confirm the final value also lands on a valid trade tick and still meets the order's conditions.

Does 10015 mean my stop loss is invalid?

MetaQuotes assigns code 10016 to invalid stops. Check the request's entry or trigger price for 10015, then review the stop and target separately if the server returns 10016.

Related guides

Related video

Related MT5 troubleshooting example: invalid stops (10016)

Watch on YouTube

Sources