Time in force
Also called order duration, order validity, timing restriction
The instruction that sets how long an order stays active and how it may fill, for example day, good-till-cancelled, good-till-date, immediate-or-cancel or fill-or-kill.

On this page· 5 sections
Every order that cannot fill at once has to do something next: wait, shrink or disappear. Time in force is the instruction that decides which, and for how long.
It matters for any order that can sit unfilled, such as a limit or a stop, and for large orders that meet too little volume at their price. The same order with a different time in force can end with a full position, part of one or nothing.
How it works
The SEC lists the common instructions for US stocks[1]:
- Day: good only for the trading day it was entered. If not executed, it generally cancels at the end of regular hours and does not carry over to extended hours or the next day.
- Good-til-canceled (GTC): lasts until it is executed in full or cancelled. How long a broker lets it stay open varies.
- Immediate-or-cancel (IOC): must execute at once, and any part that cannot fill immediately is cancelled.
- Fill-or-kill (FOK): must execute immediately and in full, or the whole order is cancelled.
- All-or-none (AON): fills in full or not at all, but unlike FOK it stays active until executed or cancelled.
- On open and on close: executes as part of the opening or closing trade, and any unfilled balance is cancelled.
FINRA adds market-on-open and market-on-close orders, executed as close as possible to the start or end of regular hours or cancelled[2].
Forex and CFD platforms split these ideas into two fields. For a pending order, MetaTrader 5 offers an expiration of GTC, Today, or Specified, valid until 00:00 of the chosen date, and a fill policy of FOK, IOC or Return[3]. Under Return, a partly filled order is not cancelled and keeps working with the remaining volume[5]. When an order reaches its expiration time, MetaTrader 5 cancels it with the state “Expired”[5].
Example
Say you want 500 shares at $20.00 or less, and only 300 are offered at that price right now.
- FOK: all 500 cannot trade at once, so nothing fills.
- IOC: 300 fill and the other 200 are cancelled.
- Day: 300 fill, and 200 wait at $20.00 until the close, then cancel if still unfilled.
- GTC: 300 fill, and 200 wait for days or weeks until filled, cancelled or cut off by the broker’s time limit.
- AON: nothing fills now, and all 500 wait for a moment when they can trade together.
Watch out
Defaults differ by market. A US stock order is a day order unless you specify a time frame[1], while a cTrader pending order with no expiry stays active until the price triggers it or you cancel it[4]. An order left behind can fill weeks later.
An expiry is not a hard stop. In cTrader, an order triggered shortly before its expiry is still sent for execution and may be filled after the expiry time[4].
Not every instruction is available everywhere. If the fill policy and expiration fields in MetaTrader 5 are inactive, the broker’s server has disabled changing them[3].
Sources
- RegulatorU.S. Securities and Exchange Commission (Investor.gov)Understanding Order Types – Investor BulletinChecked November 9, 2026
- RegulatorFINRAOrder TypesChecked November 9, 2026
- Platform docsMetaQuotes (MetaTrader 5 Help)Executing Trades - Trading Operations - MetaTrader 5 HelpChecked November 9, 2026
- Platform docsSpotware (cTrader Help Centre)Orders in cTrader WindowsChecked November 9, 2026
- Platform docsMetaQuotes (MetaTrader 5 Help)Basic Principles - Trading Operations - MetaTrader 5 HelpChecked November 9, 2026
