Skip to content
realtrademaster

MT5 Error 10033: How to Check the Pending Order Limit

MT5 trade server code 10033 (TRADE_RETCODE_LIMIT_ORDERS) means the number of pending orders has reached the account limit. If a new XAUUSD pending order returns this code, count the active pending orders across the account, including orders on other symbols. The limit is a count of orders. Reducing the size of the proposed order still requires one slot.

Steps to check

  1. Start with the order request and its corresponding server result in a redacted export or EA log. Record the timestamp and time zone, exact broker symbol (including any suffix), requested order type, and return code. If several strategies were active, use the available request references to make sure the 10033 result belongs to the pending order you are reviewing. Keep this record alongside a current-orders snapshot taken as close as possible to the rejection.
  2. In the current-orders snapshot, count each active Buy Limit, Sell Limit, Buy Stop, Sell Stop, Buy Stop Limit, and Sell Stop Limit once. Include manual and automated orders. Use distinct order tickets to avoid counting multiple log entries for the same order. Keep positions, historical orders, and any market orders still awaiting execution out of this pending-order count. For an EA, OrdersTotal() is a starting point for enumerating current orders. Classify each order by type before using the result as the pending-order count.
  3. Use the account's reported ACCOUNT_LIMIT_ORDERS value, which an EA can read through AccountInfoInteger(). When the value is documented and positive, add one to the active pending-order count to see what the count would be if the proposed order were accepted. Use records from the same account and compare their timestamps. An order can fill, expire, or be removed between rejection and review, so a later count below the limit may leave the original rejection unexplained. If the value is missing or zero, or the figures conflict, ask the broker to confirm the applicable limit and the order state at the rejection time.
  4. If you encounter 10014, review the requested deal volume against the symbol's allowed minimum, maximum, and step. If you encounter 10034, review the aggregate volume of open positions and pending orders in the same direction on that symbol. For 10033, refresh the account-wide pending-order count before deciding whether to submit anything further. Switching from a pending order to a market order changes when the trade can execute.

Worked example

A demo account reports a limit of 10 active pending orders. Its current-orders export shows four on XAUUSD and six on EURUSD. It also shows two open positions in a separate positions export. The count for error 10033 is 4 + 6 = 10. Adding a new XAUUSD Buy Limit would bring it to 11, one above the stated limit. Changing the request from 0.10 lot to 0.01 lot still adds one order. The lot figures serve only to illustrate how the count works. For a review of a dated gold setup, keep the timestamp of the original signal, the attempted order, the server response, and any later deal records together. If your export shows 10033 and you find no matching deal, record the rejection in your execution notes and verify any later attempt separately. That keeps an execution rejection distinct from a reported target or stop outcome.

Frequently asked questions

Do pending orders on other symbols count?

Yes. The limit applies to active pending orders on the account. A filtered export that shows only XAUUSD can miss orders using the remaining slots.

Can I use the number of open positions as my count?

Use the active pending-order list. Positions represent exposure created by executed deals. If your snapshot contains both, count pending tickets in the orders list.

Why is my current count below the limit after a 10033 rejection?

The account's orders may have changed since the rejection. Compare snapshots and order history around the rejection time and reconcile the result with the original request. Ask the broker for clarification if available records leave a gap.

Related guides

Related video

Related video: what a lot represents when measuring volume

Watch on YouTube

Sources