IOC — Immediate or Cancel
How it works
After submission, read the actual executed volume and price. A partial fill changes pip value and notional exposure. Resubmitting the cancelled remainder is a new decision: available prices and market conditions may already have changed.
Common mistake
Do not calculate position risk from the requested volume when the server confirmed only part of it. Nor should you resend the full original amount without reconciling the existing position; that could increase exposure beyond the intended size.
Further learning
In the course: 2.7 Forex order types and execution modes. Sources: MetaTrader 5: order properties.
Changed risk after partial execution
If EUR 4,000 executed instead of EUR 10,000, one EUR/USD pip is USD 0.40 rather than USD 1 under the usual linear specification. Recalculate exits and cash exposure from the fill, and check fixed or minimum commissions that may not shrink proportionally.
FAQ
Does IOC always produce a partial fill?
Does IOC leave its unfilled quantity waiting?
No. The remaining quantity is cancelled under IOC; submitting it again creates a new instruction.