Closing Auction
The closing auction is the event that sets the official closing price of a US-listed fund. Through the session, orders match one at a time against a visible book. After the session, the exchange collects the buy and sell interest that has built up and crosses it at a single price. Every order that takes part in the cross gets that one price, and that price is the close printed in the data.
The close matters to a systematic trader because most rules that use daily bars read the close. A 200-day average is an average of closes. An RSI(14) is built from changes in closes. A rule that says "own the fund when price closes above its average" asks about the closing auction's output. The auction is where the number the rule reads gets made, and it is usually the deepest liquidity moment of the session, which is why index funds and daily-bar strategies concentrate their execution there.
This entry explains how the auction works in general terms, why daily rules care about it, how the DeployQuant backtests treat the close, and what the measured data shows about the funds in the library: how much trading they see, how much of their return arrives overnight, and how wide their daily ranges are. The data comes from SPY, QQQ, TLT, TQQQ, IWM and UVXY, over 2021-01-04 to 2026-10-02, about 5.7 years, with $10,000 of starting capital.
Everything numeric below is a hypothetical backtest result from that one window, with daily-decision rules, fills on minute bars, no margin, and no fees or slippage in the headline runs. The page explains a term. It is not advice to buy or sell anything.
How a closing cross works
A closing cross has three parts. Buy and sell interest accumulates during the final stretch of the session. The exchange finds the single price at which the most interest can be matched. It then executes the matched orders at that price and publishes it as the official close. Orders that asked to trade at the close get the official price, whatever it turned out to be.
The result is that the closing price is a price many participants agreed to trade at, and it carries more weight than the last trade of a thin tape. Index funds that track a benchmark want to hold the benchmark's closing value, so they send size to the cross. Brokers that route orders for daily-bar strategies do the same. That concentration is the reason the definition calls it the deepest liquidity moment of the session.
Two practical points follow. A market-on-close order is the order type designed for this event. It asks to execute in the auction at the official price, and brokers require it to be submitted ahead of the close, with the exact deadline set by the broker and the exchange. Where a broker does not support the order natively, a platform can emulate it with a market order sent close to the end of the day. That emulation trades in the continuous book just before the cross, not in the cross, so its price can differ a little from the official close. The second point is about liquidity. The cross is deep for large funds, and it can be shallow for small ones. The measured volume figures below show how different the funds are.
The entry does not claim exact cutoff times, because they are set by exchanges and brokers and are not part of the backtest data. A trader who sends close-of-day orders should read the broker's current rules, or ask the broker directly.
Why daily-bar rules care about the close
A daily rule reads one number per day per fund, the close, and acts on it. The twelve templates in the library are all daily-decision rules in that sense. The 200-day regime filter owns the fund when the close is above the 200-day average and holds cash when it is below. The golden cross holds while the 50-day average is above the 200-day, both averages of closes. The SMA 10/50 trend and the EMA 12/26 trend work the same way on shorter windows. The RSI mean reversion and the RSI(2) snapback read oscillators computed from closes.
The timing of the order relative to the close is a design choice. A rule can decide using yesterday's final close and place its order at the next session's open. It can also decide near the end of today's session, using a price that is almost the close, and trade before the bell. The first version trades on a number that is final. The second trades earlier, on a number that is still moving, and the official close can still end up on the other side of the line the rule drew.
The mismatch is small on most days and matters on days when a fund finishes right at its average. A fund that closes slightly above its 200-day average at 3:55 in the afternoon and slightly below at the cross has produced two different signals from the same day. Rules with a threshold sitting near the price will see this most. The data shows that this is not rare for some funds. SPY closed above its 200-day average on 77.99% of sessions and crossed the average 30 times in the window. TLT closed above it on 35.18% of sessions and crossed it 95 times. A fund that crosses its average many times has many days where the close decides the signal.
For the 12 templates, the median number of round trips over the 59 funds ranged from 2 for the dip buyer to 166 for the RSI(2) snapback. A rule that trades 166 times in the window makes that many entry and exit decisions near some close. A rule that trades twice makes very few, and the way the close is handled matters less to it.
How the DeployQuant backtests handle the close
The headline backtests use minute-resolution consolidated US market data. Orders fill on minute bars. The engine does not simulate the auction itself, and a fill labelled as at the close is a fill on a minute bar near the end of the day. The trade lists on the strategy pages show adjusted prices, which are lower than the quotes printed at the time, because the prices are adjusted for splits and dividends.
Two consequences follow for anyone reading the tables. A backtest that fills at a minute bar near the close is a close approximation of the official close for a liquid fund, and a looser one for a thin fund. The headline run has no fees or slippage. The library's cost runs add 5 and 10 basis points per trade, which is one way to represent the gap between a model fill and a real fill. The gap between a backtest and live trading is one reason to paper trade a strategy on the live feed before using real money. DeployQuant paper trades on the same live market data feed that live trading uses.
The test has limits here. It does not include an order book or an auction imbalance, and it does not model the size of the strategy's own order against the volume of the cross. At $10,000 of starting capital, a single order in a major fund is small against the volume figures below. A much larger account would face a different problem, and the backtests do not measure it.
How much trading the funds see
The funds in the library differ by orders of magnitude in how much they trade, and the closing cross inherits that difference. Average daily dollar volume over the window was $30,453,859,411 for SPY, $18,772,024,579 for QQQ, $4,150,045,180 for TQQQ, $5,885,548,447 for IWM, $2,159,787,473 for TLT and $458,284,172 for UVXY.
Median volume per minute bar shows the same ordering at a finer scale. SPY had 107,870 shares per minute, QQQ 77,976, TQQQ 285,786.5, IWM 46,034, TLT 35,636 and UVXY 1,145. TQQQ trades more shares per minute than SPY because its price per share is lower. UVXY's median minute volume of 1,145 shares is the smallest in the set by a wide margin.
For a retail-sized order, none of the funds above would be hard to trade in a typical minute. The difference shows in how reliable a fill at the close is. For SPY and QQQ, an order of a few hundred shares is a rounding error against the volume. For UVXY, the minute volume is thin enough that a backtest fill near the close deserves more skepticism, a point the liquidity entry makes in general terms. The measured average intraday range for UVXY was 7.03%, against 1.15% for SPY, so the price can move a lot inside the final minutes.
Those volume figures describe the whole session on minute bars. The data in the library does not break out how much of each day's volume traded in the cross itself, so this entry makes no claim about the size of the auction's share. The definition's statement that the close is typically the deepest liquidity moment is general market knowledge, and the backtest data neither confirms nor measures it.
Overnight versus intraday: what the close separates
The close splits each day into two parts. The overnight part runs from one close to the next open, and the intraday part runs from the open to the close. A rule that buys at the close and sells at the next open holds only the overnight part. A rule that buys at the open and sells at the close holds only the intraday part. The library measured both for every fund.
For SPY, the overnight log return over the window was 49.65% and the intraday was 29.84%, which gives overnight 62.46% of the return and intraday 37.54%. QQQ was 58.29% overnight and 31.89% intraday, an overnight share of 64.64%. TQQQ was 97.97% overnight and 32.89% intraday, a share of 74.87%. For these three, more of the return arrived between the close and the next open than during the session.
The other funds look different. TLT had an overnight log return of -70.11% and an intraday of 18.78%, so intraday was positive while overnight lost. IWM had 69.84% overnight and -27.57% intraday, so it earned everything overnight and lost during the session. UVXY lost on both sides, with -335.95% overnight and -399.82% intraday.
The takeaway for a closing-auction trader is that the close is the point where a position starts or stops collecting the overnight return. A fund held through the close earns or loses the overnight move, and a fund sold at the close skips it. In this window, for SPY, QQQ, TQQQ and IWM, skipping the overnight part meant skipping most or all of the return. For TLT, it meant skipping a loss. These are single-window numbers and they have changed from period to period in other data, but the split shows why the exact time of a close-of-day order is not a minor detail.
The average overnight gap was 0.44% for SPY, 0.59% for QQQ, 0.54% for TLT, 1.78% for TQQQ, 0.61% for IWM and 2.53% for UVXY. A rule that exits at the close and re-enters at the next open pays that gap in whichever direction it goes.
Rules that exit near the close, and what the data says about them
Several of the templates have an exit that depends on the day's price level, and the weekly rule is the clearest case. The weekly 7% target buys at the first open of the week and exits Thursday afternoon if the trade is losing. It had a median CAGR of 6.61% across the 59 funds, the highest among the 12 templates, and it beat buy-and-hold on 34 funds. Its median drawdown was 26.26% and its median round trips were 106. A rule that trades about twice a week touches the session's end often.
The monthly cycle buys the first session of each month and sells the last, so every exit is a last-session exit. It had a median CAGR of 5.46%, a median drawdown of 36.63% and beat buy-and-hold on 14 of 59 funds. Its median round trips were 69. This is a calendar rule that both enters and exits around the daily close of specific days, and it was the weakest of the 12 on the count of funds that beat buy-and-hold.
The momentum breakout and the 3-month momentum rules had a median CAGR of 0%. The trend plus trailing stop had a median CAGR of 2.61% with the deepest median drawdown, 31.15%, apart from the monthly cycle.
None of this isolates the effect of the closing auction. The templates were not built to test the auction, and the fill model is minute bars. The numbers show the range of what daily rules did in the window. They do not show how much of it came from filling at the close and how much from the rules themselves.
What the library does not measure about the close
Several things about the close are outside the data. The backtests do not model the auction imbalance, and they do not model order priority within the cross. They do not test how a strategy's own order moves the closing price. They do not include any broker's order-type availability or cutoff times. They do not include fees or slippage in the headline run, and the 5 and 10 basis point cost runs are a simple stand-in for them.
A reader who wants to run a close-of-day rule live should check three things with the broker: whether a market-on-close order is available for the account, what its submission deadline is, and what happens if the order misses the deadline. Where the order type is not available, the alternative is a market order sent shortly before the close, which trades in the continuous book. DeployQuant connects to Webull, Charles Schwab and Alpaca accounts, and the broker pages describe what each supports, at Alpaca and the others. The order types a broker accepts differ, so the pages are the place to look.
The data window also limits what can be said. It starts on 2021-01-04 and ends on 2026-10-02, and it contains the 2022 bear market and the recoveries after it. A rule that looked good at the close in this window may look different in another one.
Frequently asked questions
What is the closing auction?
It is the end-of-day matching event where an exchange crosses the accumulated buy and sell interest at one official closing price. Every order in the cross gets that price. The price becomes the close that daily-bar rules read.
Why do daily strategies trade near the close?
Daily rules decide from the close, since averages and oscillators are built from closing prices. The close is also typically the deepest liquidity moment of the session. A rule that acts on the close trades where the volume is.
What is a market-on-close order?
It is a market order designated to execute in the closing auction at the official close. Brokers require submission ahead of the close, and the deadline depends on the broker. Some brokers do not support it natively, and a platform can emulate it with a market order sent near the close.
Does the DeployQuant backtest simulate the closing auction?
No. The headline backtests use minute-resolution consolidated data, and orders fill on minute bars. A close-of-day fill is a fill on a minute bar near the end of the session, with no fees or slippage in the headline run. Cost runs add 5 and 10 basis points.
How much of a fund's return comes after the close?
It depends on the fund and the window. In the 2021 to 2026 data, overnight accounted for 62.46% of SPY's log return and 64.64% of QQQ's. TLT earned 18.78% intraday and lost 70.11% overnight in log terms, so the split ran the other way.
Is the closing auction liquid for every fund?
The library has no measure of the cross itself. Average daily dollar volume ran from $30,453,859,411 for SPY to $458,284,172 for UVXY, and median minute volume from 107,870 shares for SPY to 1,145 for UVXY. Thin funds deserve more skepticism about close-of-day fills.
Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.
Related terms
Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.