Skip to content

Order duration and time in force

Intermediate11 min readLesson 5 of 14

120 XP

In short

Every order carries a duration, which sets how long the instruction stays alive. Immediate or cancel accepts a partial fill, while fill or kill refuses one; neither is the tidy option. A long-lived order is a standing commitment made with old information, and it tends to fill just after something has changed. Corporate actions can change or cancel resting orders, and a cancel request can arrive too late. Outside regular hours, spreads tend to be wider just when the urge to act is strongest. No duration or order type is recommended.

Scope. This article explains the duration instructions attached to an order and what each one does. No duration is recommended and no order type is recommended for any situation. MarketClue accepts, routes and executes nothing. Prices are small illustrative figures describing no actual security. Durations available and their handling vary by broker and venue; the descriptions below are the common conventions, not universal rules, and the specifics belong to an account agreement. United States market structure, as described at 17 August 2026 (extended-hours mechanics as of 16 October 2026).

Every order carries a duration. As What Happens When You Place an Order noted, duration and order type are the two fields many people leave on their defaults.

Duration decides how long an instruction stays alive. That in turn decides what information it will in the end be executed against. That second effect is the interesting one, and it is easy to overlook.

The common designations

Day. Valid for the current session and canceled at its end if unfilled. A common default.

Good till canceled. Stays alive across sessions until filled or canceled. In practice brokers impose a maximum life, and the length varies between firms. So "till canceled" generally means "till canceled or until the firm's limit expires, whichever comes first."

Good till date. Stays alive until a stated date, then cancels.

Immediate or cancel. Fill whatever quantity is available right now, and cancel the rest. Partial fills are an accepted outcome rather than an exception.

Fill or kill. Fill the entire quantity at once or cancel the whole order. No partial fill is possible.

At the open and at the close. Take part in the opening or closing auction rather than in continuous trading. That is a different mechanism, with its price set by the auction rather than by the book.

Extended-hours designations. Let an order work outside regular trading hours. That is a very different environment, dealt with below.

Worked example

Why immediate-or-cancel and fill-or-kill are not variations on a theme. Immediate or cancel accepts a partial outcome; fill or kill refuses one. The distinction only matters when the full quantity is not available — which, as Market Orders showed, is the ordinary case for any order that is large relative to posted depth. A partial fill leaves the holder with a position they did not intend and a decision they did not plan to make — whether to complete the rest at a worse price, or to hold a fraction of what was wanted. Fill or kill avoids that and buys nothing instead. Neither is the tidy option; they distribute an unavoidable awkwardness differently.

Try it with your numbers

What does trading cost?

Try it · Trading cost friction.

Inputs

100% turnover is one round trip of the whole portfolio a year.

Your assumption, held constant, for the share of the ending value lost; not a forecast.

Annual cost, percentage points of drag1.25%
  • Round trips a year5
  • Share of the ending value lost, at a constant return20.6%

Arithmetic on the numbers entered, not a forecast.

Annual cost at a 0.25% round-trip cost, by round trips a year (mechanism only)
Annual cost at 0.25%
1 round trip a year0.25%
4 round trips a year1.00%
12 round trips a year3.00%
26 round trips a year6.50%
52 round trips a year13.00%
250 round trips a year62.50%

Turnover of 500% a year is 5.00 round trips a year at a 0.25% round-trip cost: an annual cost of 1.25% (1.25 percentage points of drag), at the cost you enter. At an assumed 9.00% gross return over 20 years, the compounded share of the ending value lost to that drag is 1 − ((1 + r − drag) ÷ (1 + r))^n = 20.6%, at the assumed gross return, held constant. Mechanism only: no holding period, turnover level or trading style is suggested, no momentum measure or ranking is offered, and no cost is called high or low.

Educational and informational only — not investment advice, a recommendation, or an offer to buy or sell any security. Investing involves risk, including the possible loss of principal. Worked examples use fictional companies and figures.

Calculators earn no XP.

Open this calculator on its own page

The property of resting orders that matters most

An order that stays alive is a standing commitment made with old information.

A good-till-canceled order placed three weeks ago reflects what its author believed three weeks ago. It will execute on whatever happens today — an earnings release, a sector move, an announcement — and it has no capacity to know that anything changed. The instruction does not age. The reasoning behind it does.

The practical result is that a resting order is most likely to execute just when something has happened. That is when prices move far enough to reach it. This is the same structural point as the adverse selection in Limit Orders, extended over time rather than across counterparties: the order fills when the world has changed, and it was written before the change.

Two mechanical hazards

Corporate actions. A resting order that survives a split, a consolidation or a distribution may be adjusted, or may be canceled. That depends on the venue's and the broker's rules, not on anything the holder chose. An unadjusted order at an unadjusted price after a split is an instruction to trade at a price that no longer means what it meant.

Cancellation is a request, not an event. A cancel instruction must reach the venue before the order is matched, and in fast markets it may not. An order believed canceled can still fill. That is a property of the sequence, not a malfunction.

Outside regular hours

Extended-hours trading is a different environment wearing the same interface. Fewer participants, shallower books and wider spreads arrive together. And news is often released at exactly those times.

What changes mechanically, as of 16 October 2026 and with the usual broker variation. In most pre-market and after-hours sessions brokers accept only limit orders. Market orders and stop orders generally do not participate there, and a stop generally does not trigger on extended-hours prices. A plain Day order usually expires at the end of regular hours rather than carrying into the evening session, so taking part needs a session-specific duration instruction chosen when the order is entered. The at-the-close designations have their own auction variants, market-on-close and limit-on-close, with cut-off times set by the venue. Brokers differ on every one of these points, and the specifics belong to the account agreement.

Illustrative session conditionsSpreadAs a share of a $40.00 midpointCost of a 100-share round trip
Active session$0.040.10%$4.00
Thin session$0.501.25%$50.00

Worked example: the same instruction, twelve and a half times the cost. A 100-share round trip costs $4.00 in the active session and $50.00 in the thin one — a ratio of 12.5×, with nothing changed except the conditions the order met. The reason the two arrive together is that the spread is the price of immediacy, and immediacy is dearer when fewer participants are available to supply it. The compounding factor is that the reason someone wants to trade outside hours is often that something has just been announced — so the moment of greatest urgency tends to coincide with the moment of thinnest liquidity, and the cost of acting tends to be highest when the impulse to act is strongest. MarketClue characterizes no session as thin, publishes no threshold for an acceptable spread and does not suggest when anyone should or should not transact. Figures are illustrative and describe no actual security.

Check understanding

1 of 5

Mara enters an order for 500 shares marked fill or kill, but only 300 shares are available at her price right now. What happens to the order?

Frequently askedCommon questions

9 questions

What is time in force?

The duration instruction attached to an order: how long it stays alive. With order type, it is one of the two fields many people leave on their defaults.

What are the common durations?

Day, valid for the current session. Good till canceled, which stays alive across sessions. Good till date. Immediate or cancel. Fill or kill. Taking part in the opening or closing auction. And extended-hours designations.

Does good till canceled really last indefinitely?

In practice no. Brokers impose a maximum life, and the length varies between firms. So it generally means till canceled or until the firm's limit expires, whichever comes first.

What is the difference between immediate or cancel and fill or kill?

Immediate or cancel accepts a partial fill; fill or kill refuses one. The difference matters only when the full quantity is not available. That is the ordinary case for an order that is large compared with posted depth.

Is a partial fill a problem?

It leaves a position that was not intended and a decision that was not planned: complete the rest at a worse price, or hold a fraction of what was wanted. Fill or kill avoids that and buys nothing instead. Neither option is tidy.

What is the main risk of a long-lived order?

That it is a standing commitment made with old information. It will execute on whatever happens today and cannot know that anything changed. And it is most likely to execute just when something has happened, because that is when prices move far enough to reach it.

What happens to a resting order through a corporate action?

It may be adjusted or canceled, depending on the venue's and broker's rules rather than anything the holder chose. An unadjusted order at an unadjusted price after a split is an instruction to trade at a price that no longer means what it meant.

Is a cancellation guaranteed?

No. A cancel must reach the venue before the order is matched, and in fast markets it may not. An order believed canceled can still fill. That is a property of the sequence, not a malfunction.

What is different about trading outside regular hours?

Fewer participants, shallower books and wider spreads, all together. Mechanically, most sessions accept only limit orders, market and stop orders generally do not participate, and a Day order usually expires at the end of regular hours, so a session-specific duration is needed; brokers differ. On the illustration, a 100-share round trip costs $4.00 in an active session and $50.00 in a thin one, 12.5 times as much. And people often want to trade then because something has just been announced. So the greatest urgency tends to coincide with the thinnest liquidity.

ReferencesWhere this comes from

Finished reading?

Mark it complete once the answer holds without scrolling back up.

Ask MarketClue AI about this lesson

The question carries this lesson as its context. MarketClue AI needs an account.

MarketClue does not provide financial advice.

Next on your list

Topic 29 · Orders and executionBid, ask and the spreadLesson 6 of 14
Next lesson

After that

Educational and informational only — not investment advice, a recommendation, or an offer to buy or sell any security. Investing involves risk, including the possible loss of principal. Worked examples use fictional companies and figures.