When placing a trade in MetaTrader 5, choosing a direction and volume is not always enough. The order filling policy tells the trading system what to do if the full requested volume cannot be executed under the available conditions. This matters most when available liquidity is limited, quotes move quickly, or the requested trade size is larger than the volume available at one price.
The three main filling policies are Fill or Kill, Immediate or Cancel, and Return. They are often shown in MT5 as FOK, IOC and Return. Each policy handles unfilled volume differently. A trader who understands the difference can avoid surprise partial positions, rejected orders, or an order remaining active when that was not the intention.
Why filling policies matter
An order is a request to buy or sell a specified volume. Execution depends on the order type, the symbol settings and the volume available from the execution venue. A filling policy does not promise a particular price or result. It defines the acceptable outcome when the whole requested volume is not immediately available.
For example, a trader may want either the entire position or no position at all. Another trader may prefer to receive any available volume immediately, even if the final position is smaller than planned. A third trader may want the unfilled balance to stay active as a pending request. These are different instructions, and MT5 uses filling policies to express them.
The available policies can vary by symbol and account configuration. MT5 only permits filling modes supported by the instrument. Check the symbol specification and the order ticket before relying on a particular choice. If a mode is unavailable, do not assume that another mode will behave the same way.
FOK: Fill or Kill
FOK means Fill or Kill. The order must be executed in full immediately, or it is cancelled entirely. There is no partial fill. The word “kill” means cancel the unexecuted order, not close an existing position.
Suppose a trader submits a market order for 10 units of volume. If the system can execute all 10 units within the permitted conditions, the trade is opened. If only 7 units are available, the entire order is rejected or cancelled. The trader receives no 7-unit position.
FOK can suit a plan that requires a precise position size. For instance, a trader may have calculated risk using a fixed volume and may not want a smaller, incomplete trade. However, FOK can also lead to missed entries when liquidity is thin or conditions change quickly. A rejected FOK order is not evidence that the trading idea was wrong. It only means the full requested volume was not available under that instruction.
IOC: Immediate or Cancel
IOC means Immediate or Cancel. MT5 executes as much of the requested volume as it can immediately, then cancels any remaining volume. Unlike FOK, partial execution is allowed.
Imagine a trader sends an IOC order for 10 units. The system can execute 6 units immediately but cannot execute the other 4 units. The result is a live position of 6 units, while the remaining 4 units are cancelled. Nothing remains waiting in the market.
IOC is useful when immediate participation matters more than receiving an exact volume. It can also create a risk-management issue: the filled position may not match the original stop loss calculation, expected cost or planned exposure. After an IOC partial fill, review the actual volume in the Trade tab before assuming the order was completed as requested.
Worked hypothetical example
Imagine a $1,000 account. A trader decides that the maximum loss on one trade is $10. The planned order is 10 units, with a stop distance that would create a $10 loss if all 10 units were filled. The implied risk per unit is $10 ÷ 10 = $1.
If an IOC order fills only 6 units, the risk at the same stop distance becomes 6 × $1 = $6. The remaining 4 units are cancelled. The smaller risk may appear safer, but it also means the actual trade no longer matches the original plan. Adding another order later can introduce a different entry price, spread cost or execution result. The trader should make a fresh decision rather than automatically trying to restore the missing volume.
Return mode
Return mode allows the available part of an order to be executed, while the unfilled balance remains active for possible execution later. Its exact behaviour depends on whether the order is a market order or a pending order, as well as the execution method supported by the symbol.
For a pending order, Return mode can mean that an order is triggered for the available volume and the remaining volume stays pending. This differs from IOC, which cancels the remainder, and FOK, which cancels the whole request if it cannot be filled completely.
Return mode is not available for every execution arrangement. In particular, MT5 may restrict it for symbols using Market Execution. Always check what the order ticket permits. A pending balance also carries risk: market conditions can change before it executes, and it may fill at a time when the original trade idea is no longer valid.
Common filling mode mistakes
- Assuming a partial fill is impossible: IOC and Return can result in less volume than requested.
- Ignoring the final trade volume: Check the position size, entry details and protective orders after execution.
- Using FOK for every fast market: The order may be cancelled when full volume is unavailable.
- Trying to replace missing IOC volume without review: A second order can change average entry and total risk.
- Leaving Return mode orders unattended: Remaining volume may execute later under different conditions.
- Confusing filling policy with a stop loss: A filling mode controls execution of an entry or order volume, not downside protection after a position opens.
Practical order check
- Confirm whether the symbol supports FOK, IOC or Return.
- Decide whether full size, any immediate size, or a remaining active balance fits the trade plan.
- Set the volume and protective orders before sending the order.
- After execution, verify the actual filled volume and any remaining order.
- Recalculate position risk from the real filled size, then record the result in a trading journal.
Educational content only, not investment advice. Leveraged trading can lose more than you expect.
