Skip to content
Menu
Finabase Learn

Trading · Orders and execution

Opening and closing auctions: how the open and close are set

How Nasdaq’s crosses and NYSE’s auctions set the official open and close, the order cutoffs and imbalance data, and a worked example that finds a closing price by hand.

On this page
  1. Why exchanges run auctions
  2. The orders that take part
  3. The clock
  4. The imbalance feed
  5. Finding the price: a worked example
  6. When the close moves a lot
  7. How Finabase does it
  8. Frequently asked questions
  9. Summary
  10. Check your understanding

During the trading day, prices are set one trade at a time as orders meet in the order book. Twice a day, US exchanges do something different. At the open and at the close they collect orders for several minutes, then match as many as possible at one price in a single event called an auction (Nasdaq calls it a cross). The prices those auctions produce are the official open and close: the numbers on every chart, in every index and in the value of every mutual fund.

The closing auction in particular is one of the largest trading events of the day. This lesson explains how both work, which orders take part, what the published imbalance figures mean, and how a single price is chosen, using a worked example small enough to do by hand.

Why exchanges run auctions

Continuous trading works well when a steady flow of buyers and sellers meets a book with plenty of depth. It works less well at two moments.

At the open, news has piled up overnight and the book is thin. If the first market order of the day traded against whatever stray limit order happened to be resting, the opening price could be far from where most participants think the stock is worth. Collecting orders first and crossing them at one price gives a more representative start.

At the close, a different force applies. Index funds, many other funds and lots of benchmarked traders want to trade at the closing price, because that is the price used to value their portfolios and to calculate indexes. An auction lets all of them meet at exactly that price, in size, without moving it trade by trade. That concentration of demand is why the close is so large: NYSE reported that closing auctions across US exchanges averaged $55.5 billion a day in the second quarter of 2024, 9.44% of all value traded.

The orders that take part

Auction orders are ordinary orders with a timing instruction.

  • Market-on-close (MOC): buy or sell at the closing price, whatever it is. It is certain to trade if there is anyone on the other side, and it has no price protection.
  • Limit-on-close (LOC): buy or sell in the closing auction only at the limit or better. A buy LOC at $30.05 trades if the closing price is $30.05 or lower.
  • Market-on-open (MOO) and limit-on-open (LOO): the same two types for the opening auction.
  • Regular limit orders resting in the book at the time of the auction also take part, along with special order types that some exchanges offer (such as NYSE's Closing D orders, which floor brokers can enter until shortly before 4:00 p.m.).

Brokers may call these "at the open" and "at the close" time-in-force instructions; the lesson on Time in force: day, GTC, IOC, FOK and other order durations covers the others.

The clock

Each exchange's rulebook sets when auction orders can be entered and cancelled, and when imbalance information is published. These were the rules in November 2026.

The last ten minutes on Nasdaq: the closing cross clock (Eastern Time) 3:50 p.m. Early imbalance messages begin; MOC orders can no longer be cancelled 3:55 p.m. MOC entry ends; full imbalance data every second 3:58 p.m. LOC entry ends 4:00 p.m. Closing cross: one price, the official close Nasdaq Rules 4702(b)(11)-(12) and 4754 as of November 2026. NYSE stops accepting MOC and LOC orders at 3:50 p.m. (Rule 7.35B).
The Nasdaq closing cross timetable. Source: Nasdaq Equity 4 rules, November 2026.

Nasdaq close. MOC orders can be entered until 3:55 p.m. ET but cannot be cancelled after 3:50. LOC orders can be entered until 3:58 (those entered after 3:55 may be re-priced against a reference price Nasdaq publishes). From 3:50 Nasdaq publishes an early imbalance indicator every 10 seconds; from 3:55 the full indicator, with indicative prices, every second. The cross runs at 4:00.

Nasdaq open. MOO orders are accepted until 9:28 a.m. and cannot be cancelled after 9:25; LOO orders until 9:29:30. Imbalance information starts at 9:25 and the full indicator at 9:28. The opening cross runs at 9:30.

NYSE close. The cutoff for MOC and LOC orders is 3:50 p.m. After it, new MOC and LOC orders are accepted only on the side that offsets a published significant imbalance, and existing ones cannot be cancelled. Imbalance data is published every second from 3:50. The designated market maker oversees the closing auction and sets the price within limits defined by Rule 7.35B. NYSE's opening imbalance information starts at 8:00 a.m.

The imbalance feed

Before each auction, the exchange broadcasts what the book would do if the auction ran now. On Nasdaq the main fields are:

  • Paired shares: how many shares would match at the current reference price.
  • Imbalance size and side: how many shares on one side would be left unmatched, and whether they are buys or sells.
  • Near and far clearing prices: the price at which the auction would clear using all orders, and using only the auction-only orders.

The point of publishing it is to invite offsetting orders. A large buy imbalance a few minutes before the close is an advertisement: anyone willing to sell at the indicated price can enter an order and fill the gap. Market makers, statistical arbitrage firms and other funds do exactly that, which is why large imbalances usually shrink before 4:00.

Finding the price: a worked example

Here is a small closing book. Market-on-close orders are 20,000 shares to buy and 12,000 to sell. Limit-on-close orders are:

  • Buys: 5,000 at $30.10, 8,000 at $30.05, 10,000 at $30.00, 6,000 at $29.95
  • Sells: 7,000 at $29.95, 9,000 at $30.00, 10,000 at $30.05, 12,000 at $30.10

At each candidate price, count the buy orders willing to pay that price or more (all MOC buys, plus every LOC buy with a limit at or above it) and the sell orders willing to accept it or less.

Price Shares to buy Shares to sell Paired Left over
$29.95 49,000 19,000 19,000 30,000 to buy
$30.00 43,000 28,000 28,000 15,000 to buy
$30.05 33,000 38,000 33,000 5,000 to sell
$30.10 25,000 50,000 25,000 25,000 to sell
Finding the closing price: shares willing to buy and to sell at each price 0k 10k 20k 30k 40k 50k 60k $29.90 $29.95 $30.00 $30.05 $30.10 $30.15 Cross at $30.05: 33,000 shares paired shares to buy at this price or higher (thousands) shares to sell at this price or lower (thousands) Candidate auction price Shares
Demand and supply in the illustrative closing auction. Computed in the Finabase figure script.

The auction picks the price that pairs the most shares: $30.05, with 33,000. All the buyers willing to pay $30.05 or more trade. Of the 38,000 shares offered at $30.05 or less, only 33,000 can trade, so 5,000 shares of sell orders at exactly $30.05 are left unfilled. The MOC orders all trade, at $30.05, whatever price their senders had in mind.

Nasdaq's rule has tie-breakers if two prices pair the same number of shares: the smaller imbalance wins, then a price at which some entered orders remain unexecuted, then the price closest to the midpoint of the continuous market's bid and ask. NYSE's DMM sets the price inside a band defined by the imbalance reference price and the price at which the continuous book would clear.

Notice what the market-on-close orders alone said: 20,000 to buy against 12,000 to sell, an imbalance of 8,000 shares to buy. A buy imbalance published at 3:50 tells sellers there is demand at the close. If the price moves up as a result, LOC sell orders above the old price come into play and the imbalance shrinks. That is the self-correcting mechanism the feed is designed to trigger.

When the close moves a lot

The closing price usually lands close to the last continuous trade, but not always. On days when index funds must buy or sell large amounts, on Triple witching: what expires, and what two years of volume show expirations and on Index rebalance days: the trade at the close and the volume it brings, imbalances are larger and the closing price can move noticeably in a single print. A stock can trade at $30.00 at 3:59:59 and close at $30.25.

For traders this cuts both ways:

  • An MOC order has no price protection. In a large imbalance against you, the fill can be far from the last price you saw. An LOC order limits that, at the risk of not trading.
  • Charts and stops use the close. A daily close can be set by one large auction trade rather than a gradual move, which matters to anyone using closing prices for signals.
  • Liquidity at the close is deep. For a fund that must trade a large block at the closing price, the auction is usually the cheapest place to do it.

How Finabase does it

Finabase charts and the daily bars behind every indicator, backtest and screen use the official closing price, the price the closing auction set. On a one-day chart, the final minute often shows a volume bar several times the size of the minutes before it: that is the auction.

The paper account at /trading fills at live prices and does not take auction orders, so a paper trade cannot reproduce an MOC fill. To study the close, open a one-day chart such as SPY after 4:00 p.m. and compare the last continuous price with the official close.

Frequently asked questions

What is a closing auction?

A single event at 4:00 p.m. ET in which an exchange matches as many collected buy and sell orders as possible at one price. That price becomes the stock's official closing price.

What is the difference between MOC and LOC orders?

A market-on-close order trades at the closing price, whatever it is. A limit-on-close order trades in the closing auction only if the closing price is at its limit or better, so it may not trade at all.

When is the cutoff for market-on-close orders?

On Nasdaq, 3:55 p.m. ET for entry, with no cancellations after 3:50. On NYSE, 3:50 p.m.; after that, new MOC orders are accepted only to offset a published significant imbalance. Brokers often set earlier cutoffs of their own.

What does an order imbalance mean?

More shares of auction orders on one side than the other at the indicative price. Exchanges publish it before the auction so that other traders can enter offsetting orders.

Summary

  • Auctions collect orders and execute as many as possible at one price; they set the official open and close.
  • MOC orders accept any closing price; LOC orders set a limit. Nasdaq's MOC cutoff is 3:55 and its LOC cutoff 3:58; NYSE's is 3:50 for both.
  • Exchanges publish paired shares, the imbalance and indicative prices before the auction to draw offsetting orders.
  • The price is the one that pairs the most shares: $30.05 and 33,000 shares in the example, with 5,000 shares left unfilled.
  • The close is large, 9.44% of US value traded in Q2 2024, and on rebalance and expiration days the closing print itself can move the price.

Check your understanding

4 questions on this lesson. Each answer comes with the reason, and nothing is scored.

  1. You enter a market-on-close order to buy 500 shares. What price will you pay?

    1. The last trade before you entered the order
    2. The official closing price set by the closing auction
    3. The best ask at 3:59 p.m.
    Show the answer

    B. The official closing price set by the closing auction An MOC order executes in the closing auction at the single auction price, whatever it is.

  2. In an auction, buyers would take 43,000 shares at $30.00 and 33,000 at $30.05; sellers would supply 28,000 at $30.00 and 38,000 at $30.05. Which price is chosen first?

    1. $30.00, because more buyers are willing
    2. $30.05, because it pairs 33,000 shares against 28,000 at $30.00
    3. The average, $30.025
    Show the answer

    B. $30.05, because it pairs 33,000 shares against 28,000 at $30.00 Paired shares are the smaller of the two sides: 28,000 at $30.00 and 33,000 at $30.05. The auction picks the price that pairs the most.

  3. What is the cutoff for entering market-on-close orders on NYSE?

    1. 3:50 p.m. ET, after which they are accepted only to offset a published significant imbalance
    2. 3:59 p.m. ET
    3. There is no cutoff
    Show the answer

    A. 3:50 p.m. ET, after which they are accepted only to offset a published significant imbalance NYSE Rule 7.35B sets 3:50 p.m. as the closing auction imbalance freeze time. Nasdaq’s MOC entry cutoff is 3:55.

  4. Why do exchanges publish the order imbalance before the close?

    1. To warn traders to stay away
    2. To invite offsetting orders, so more shares pair and the price is less disrupted
    3. Because regulators require it to be printed in newspapers
    Show the answer

    B. To invite offsetting orders, so more shares pair and the price is less disrupted A published buy imbalance advertises demand. Sellers can enter orders to meet it, which usually shrinks the imbalance before the auction runs.

Sources and further reading

  1. Nasdaq Stock Market rulebook, Equity 4 — Rule 4752 (Opening Cross), Rule 4754 (Closing Cross), Rule 4702 (order types and entry cutoffs)
  2. Nasdaq Trader — Opening and Closing Cross FAQ
  3. NYSE Rules 7.35, 7.35A (DMM-facilitated auctions) and 7.35B (closing auction)
  4. NYSE — Closing auction process fact sheet
  5. NYSE — US closing auction volumes, Q2 2024: $55.5 billion a day, 9.44% of notional value (NYSE data insight, August 29, 2024)
  6. Finabase worked example — an illustrative closing book; clearing price and imbalance computed in the Finabase figure script (scripts/learn/figures/trading-mechanics.ts)