Advertisement IC Markets

Unsupported filling mode: the MT5 rejection that confuses new users

Compare ECN/Raw spread brokers, analyze execution speeds, report slippage, and evaluate commission structures for high-frequency traders.
Post Reply
Amanhasnoname
Posts: 1506
Joined: Fri Oct 30, 2026 9:45 am

Unsupported filling mode: the MT5 rejection that confuses new users

Post by Amanhasnoname »

An MT5 order can fail with a message about unsupported filling mode, and the cause is a mismatch between what the code requests and what the symbol allows. Symbols support combinations of fill-or-kill, immediate-or-cancel, and return. Each broker and symbol can differ.

A script written on one broker may fail on another because the default fill type is not permitted. Even within a broker, forex pairs and indices can have different rules.

The fix is querying the symbol's filling mode flags before sending, and picking an allowed type. Many libraries do it automatically, but homemade code often hardcodes one choice.

Beyond avoiding errors, the fill type affects behavior. Fill-or-kill rejects when full size is unavailable. Immediate-or-cancel takes what is available. Return allows partial fills to rest as pending orders, which is a nasty surprise for a scalper who expects a clean exit.

Check which mode the EA uses and confirm it matches the intent for each order type.

Which filling mode does the strategy use, and was that a conscious choice?
Recommended broker for automated trading & scalping IC Markets
Post Reply