Immediate-or-Cancel (IOC) Order
An IOC order is a time-in-force or fill instruction that attempts to execute the maximum immediately executable quantity under the order's specified conditions and cancels any unfilled remainder.
An Immediate-or-Cancel (IOC) order is a time-in-force (how long an order stays active) or fill instruction that tries to execute the maximum quantity that can be filled immediately under the order's specified price and execution conditions, then cancels any unfilled remainder. For example, imagine you send an IOC Buy for 1 lot and only 0.5 lot is immediately executable under the applicable conditions. A deal for 0.5 lot would be executed and the remaining 0.5 lot cancelled. IOC is not a standalone price-setting order type; whether IOC is available, and which order types can carry it, depends on the broker, trading platform, instrument and execution mode. For example, some platforms may support IOC instructions on certain market or limit orders, but the supported combinations vary by platform. In MetaTrader 5, pending orders use the RETURN filling policy regardless of execution mode, and stop-limit orders are pending orders in MetaTrader 5, so stop-limit orders should not be treated as an IOC example there. Where an IOC limit order is supported, it must still respect its limit price, so it can execute only at the limit price or better; where an IOC market order is supported, it attempts immediate execution under the order's conditions.
IOC and pending orders are not simply opposite categories; an order's behaviour comes from its type plus its time-in-force or execution instructions. An order without an IOC instruction may remain active according to its applicable time-in-force and execution rules, such as a pending order waiting for its trigger conditions. IOC instead requires immediate execution attempts and cancellation of any unfilled remainder. Availability and supported order types for IOC depend on the broker's trading server, instrument and execution mode; MetaTrader 5 rules illustrate one implementation and are not universal rules for every forex broker.
Related terms
More in Orders