Order TypesIntermediate

Market-on-Close Order (MOC)

A market-on-close order buys or sells at the official closing price set in the exchange's closing auction. Index funds use them heavily, which is why the close is often the busiest moment of the day.

A market-on-close (MOC) order says: fill me at whatever the official closing price turns out to be. It does not trade during the day. Instead it waits for the exchange’s closing auction, where all on-close orders meet the regular order book at one price. On Nasdaq that auction is the Closing Cross, which sets the official closing price for every Nasdaq-listed stock.1 This entry covers the cutoff times, the imbalance data that traders watch, and the risks of giving up price control.

Category
Order Types
Reading time
6 min
Also called
Market on close, MOC order, On-close order
Updated

The MOC order in plain words

A normal market order fills right away at the best available price. An MOC order instead joins the closing auction and fills at the single closing price. Funds that track an index or value their holdings at the close use it so their trades match the price their benchmark uses. See Index Fund.

There are deadlines. On the NYSE, MOC orders can be entered, changed or cancelled until 3:50 p.m. Eastern; after that they cannot be cancelled, and new ones are allowed only to offset a published imbalance.2 On Nasdaq, MOC orders must arrive before 3:55 p.m., and on-close orders can be changed or cancelled only before 3:50 p.m.3

How an MOC order is filled, step by step

  1. Enter before the cutoff

    Send the order to the listing exchange’s closing auction before its deadline.2

  2. Orders build up

    On-close buy and sell orders collect in the closing book during the afternoon.

  3. Imbalance is published

    From 3:50 p.m. Nasdaq publishes paired shares, imbalance size and side, and a reference price, every 10 seconds until 3:55 p.m. and every second after that.3

  4. Offsetting interest arrives

    Traders send orders on the opposite side of the imbalance, such as closing offset or imbalance-only orders.23

  5. The auction runs at 4:00 p.m.

    The on-close book and the continuous book are matched into one closing price.3

  6. Fill at the official close

    MOC orders execute at that price, which becomes the official closing price.3

Worked examples

Example 1 — An index fund buys at the close

Matches benchmark

Hypothetical: an index fund must buy 50,000 shares on the day of an index change. It sends an MOC order; the official close is $42.10.

Example 1 — An index fund buys at the close — calculation
Fill price$42.10 (official close)
Cost50,000 × $42.10 = $2,105,000

The fund pays exactly the closing price the index uses, so its tracking error from this trade is close to zero. See Rebalancing.

Example 2 — Reading an imbalance

Buy-side imbalance

Hypothetical: at 3:50 p.m. the closing book holds 300,000 shares of MOC buys and 120,000 shares of MOC sells.

Example 2 — Reading an imbalance — calculation
Paired shares120,000
Imbalance300,000 − 120,000 = 180,000
Imbalance sideBuy

A large buy imbalance invites sellers to step in and can push the closing price up. See Order Book Imbalance.

Example 3 — MOC vs. limit-on-close

Certainty vs. price

Hypothetical: two traders want to buy 1,000 shares at the close. One uses an MOC order, the other a limit-on-close (LOC) order at $41.90. The close is $42.10.

Example 3 — MOC vs. limit-on-close — calculation
MOC orderFilled at $42.10
MOC cost1,000 × $42.10 = $42,100
LOC at $41.90Not filled: $42.10 > $41.90

The MOC order is filled but takes any price; the LOC order protects the price but may not fill at all. See Limit Order.

MOC vs. other closing-auction orders

AspectPrice controlTypical use
Market-on-close (MOC)None: fills at the closeIndex funds, benchmark trades
Limit-on-close (LOC)Fills only at limit or betterClosing trades with a price cap
Offset / imbalance-onlyLimit; only offsets imbalanceLiquidity providers

Why traders use MOC orders

  • Index tracking

    Funds benchmarked to closing prices trade at the close to match their index. See Index Fund.

  • Index changes

    When stocks enter or leave an index, the resulting trades are often executed at the close. See Index Inclusion and Rebalancing.

  • Benchmark execution

    Some orders are judged against the closing price rather than VWAP.

  • Large size with low impact

    The auction gathers lots of liquidity at one moment, which can reduce Market Impact for big orders.

Advantages and disadvantages

Advantages

  • Fills at the official closing price used for funds and indices.
  • Taps the deep liquidity gathered in the closing auction.
  • One price for all participants, no chasing the book.
  • Simple to use for benchmark-driven trades.

Disadvantages

  • No price limit: a large imbalance can move the close against you.
  • Cannot be cancelled after the cutoff on major US exchanges.
  • Fill is not guaranteed; Nasdaq says it does not guarantee MOC executions.3
  • Cutoff times and rules differ between exchanges.

Going deeper

Read as far as you need. Each level builds on the one before it.

Why the close is so busy

Beginner

Many funds value their portfolios at the closing price, so trading at that price removes tracking risk. That concentrates a lot of orders into the final auction.

How the closing price is chosen

Intermediate

Nasdaq’s reference price is the price within the inside market at which paired shares are maximized, the imbalance is minimized and the distance from the bid-ask midpoint is minimized, in that order.3 Nasdaq also publishes near and far indicative clearing prices from 3:55 p.m.3

Offsetting imbalances

Advanced

After the NYSE cutoff, new MOC and LOC orders are accepted only on the opposite side of a significant imbalance.2 Closing offset orders on the NYSE and imbalance-only orders on Nasdaq execute only against an imbalance and never add to it.23 This is how liquidity providers absorb the one-sided flow from index funds. See Opening and Closing Auctions.

Common mistakes

  1. Missing the cutoff

    Nasdaq does not accept MOC orders entered after its 3:55 p.m. cutoff.3

  2. Assuming you can cancel late

    After 3:50 p.m. on the NYSE, MOC orders cannot be modified or cancelled.2

  3. Using MOC in thin stocks

    In illiquid names a one-sided close can print far from the last trade. A limit-on-close order caps the price.

  4. Ignoring imbalance data

    The published imbalance tells you which side is crowded before the auction runs.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1The closing book has 500,000 shares of MOC buys and 350,000 shares of MOC sells. What is the imbalance?
Q2What price does an MOC order receive?

Key points to remember

  1. An MOC order fills at the official closing price from the closing auction.
  2. It has no price limit, so imbalances can move the fill price.
  3. NYSE and Nasdaq set firm entry and cancel cutoffs before 4:00 p.m.
  4. Exchanges publish imbalance data in the final minutes.
  5. Index funds are big MOC users, which makes the close a high-volume moment.

Frequently asked questions

Can I use an MOC order with a retail broker?

Many brokers offer it, sometimes labelled as a time-in-force option or a special order type. Check your broker’s own cutoff, which may be earlier than the exchange’s.

Is an MOC order guaranteed to fill?

No. Nasdaq states that it does not guarantee MOC executions in its Closing Cross.3

What happens if a stock has no closing auction?

Exchanges have fallback rules. On Nasdaq, if a stock has no Closing Cross, the last eligible regular trade before 4:00 p.m. becomes the official close.3

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. Nasdaq. Nasdaq Closing Cross (opens in a new tab) Checked .
  2. NYSE. NYSE Opening and Closing Auctions (fact sheet) (opens in a new tab) Checked .
  3. Nasdaq. Opening and Closing Cross FAQs (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.