November 23, 2026 · research

Your backtest traded a full day on July 3. The NYSE closed at 1.

Your backtest traded a full day on July 3. The NYSE closed at 1.

Ravi, your July 3rd backtest and your July 3rd paper blotter are not the same Friday. The research run woke the last-hour job at 15:45 Eastern, walked the 80 mid-caps, and filled MOC at the official close. The afternoon in the plot looks like a slightly quiet session. The paper account submitted those same 80 MOC orders at 15:50 and got rejects. The NYSE had closed at 13:00. You held Thursday's weights through an afternoon your tape kept printing, then through the weekend.

July 3rd, 2025 was not a holiday. The listing was open. The opening auction ran. The closing auction ran. It all finished at 1:00 PM. Your job asked whether the clock had passed 15:45.

The session is 210 minutes, and the auction moved with it

Regular hours are 9:30 to 16:00, 390 minutes. An NYSE early close is 9:30 to 13:00, 210 minutes. The MOC/LOC cutoff moves from 15:50 to 12:50. The closing imbalance is a 12:50 print. Glue a rebalance to wall-clock time in the last hour of a normal day, and on an early close you schedule it after the only hour that still had the liquidity you wanted.

What you keyed offNormal FridayJuly 3, 2025What you actually got
Clock time 15:45Last 15 minutes of regular hours2 hours 45 minutes after the bellA frozen last, or a reject
MOC at 15:50In the closing auctionCutoff was 12:50Backtest fill, paper reject
16:00 daily timestampOfficial closeStill labeled 16:00The price is 13:00. The time is costume jewelry.
9:30–16:00 vol window390 minutes of tape180 extra zero returnsFriday vol too low, Monday size too high

A year only has a handful of these. The Friday after Thanksgiving. Christmas Eve, most years. July 3rd when the Fourth lands on a Friday. They will not dent a five-year Sharpe on their own. They will dent a paper account the first time a gateway returns market closed eighty times in a minute and you spend the weekend in Thursday's names.

I once spent forty minutes treating a missing 13:06 bar as a feed outage, on a dashboard whose x-axis always ends at 16:00. The vendor was fine. The intern nearer the screens was fine. The paper calendar on the fridge had a little grill drawn on July 3rd. I am not proud of how long that took.

Your bar grid kept the afternoon anyway

I pulled the parquet. Raw prints on those 80 names stop at 13:00:02. Your 1-minute builder still runs a 9:30–16:00 grid and forward-fills. That is a boring, correct function on a 390-minute day. On July 3rd it manufactures 180 minutes of market. Volume sits at zero, or at one share if the resample is sloppy, and OHLC is the 13:00 last, copied until the clock gives up.

At 15:45 the signal did the usual thing and looked back 30 minutes. Every return in that window was zero: the same last, repeated. A few names still traded because the noon residual was large enough to clear your threshold on the stale print. The backtest filled those MOC orders at a 16:00 timestamp sitting on a 13:00 price.

The official close that day really is the 13:00 auction, so the number in the close column can be the right number. You still cannot enter that auction at 15:50. MOC had to be in by 12:50. A limit at 15:45 would have been after-hours, on a thinner book, if the broker took it at all. Six of the names opened Monday more than two percent away from Friday's 13:00 print. The paper book still held Thursday's weights in all six. The backtest had already rotated them.

Most equity daily files will still stamp that Friday 16:00. The price inside is the 13:00 close. If you only look at dates, you will never see it. If you send orders from a clock, you will.

The paper rejects are the honest fills

You said the paper strategy didn't trade. It tried. But the paper broker already knows the session length, so MOC after cutoff is a reject, and a limit into a session that has ended is a reject. The backtest has a close column, so it said yes.

I would rather the research engine throw when a fill's timestamp sits after session close. A last print is a convenient yes. It turns early-close Fridays into slightly dull regular Fridays, which is how they vanish from a yearly tear sheet.

And the vol target swallowed the fake quiet. Your realized-vol window is 9:30 to 16:00 on every equity. On July 3rd that window held 180 extra zero returns. Friday's vol came in light. Monday the sizer read a calmer book than Friday afternoon had any right to imply, and it nudged notional up. Not a blow-up. Enough that I saw it in the target-notional series before I bothered to open a calendar.

13:00 NYSE close on an early-close day
12:50 MOC cutoff that Friday
180 1-minute bars a 16:00 grid will invent

Put the session on the date, then clip every window to it

The calendar you need is a session calendar, not a holiday flag. Skipping shut days lets July 3rd through, because July 3rd was open. Fully closed days are the easy ones. This is the other file.

For each venue, store the open, the close, the MOC cutoff, and the auction time. Regular days are a rule. Early closes are a list, because they move. Clip every "last 30 minutes" feature to the session that existed that morning. Check the cutoff for that date before you send MOC. If a bar's timestamp is after close, you cannot trade it, even when OHLC is full. Stop resampling onto a 16:00 grid and then being surprised that 16:00 arrived.

  1. Replay the last five NYSE early-close dates with the session table yanked. You should see fills after 13:00.
  2. Put the table back. Those fills should disappear or slide into 12:00–13:00.
  3. Rebuild Friday's 1-minute file with the grid clipped at 13:00 and confirm the vol estimator moves. If it doesn't, the zeros were already in some other window you forgot about.

If the three checks don't change anything, you are still reading the wall clock, and the wall clock does not run the NYSE.

This Friday, November 27th, is the day after Thanksgiving. Close is 1:00. The 15:45 job will fire unless you clip it. I don't want another pair of Fridays that only agree on the date.

early closeUS equitiessession calendarmarket datapaper trading
← All posts