AUCTIONS: TWO PRINTS A DAY THAT BREAK YOUR VOLUME BARS (SCRIPT)
Okay so if you came here from Instagram because you commented AUCTION, welcome. The script from the reel is attached at the bottom of this post.
Quick idea first. Volume bars close a new bar every X shares. You pick X so you get a normal number of bars a day, say 78, the same as 5-minute bars. So X = the day's volume divided by 78. Simple, right? The problem is the opening and the closing auction. Each one is a single print, and on a stock like AAPL that single print can be millions of shares. If you leave them in the volume when you set X, X gets way too big and your continuous trading gets far fewer bars than you asked for.
The math is one line. If s is the share of the volume in the auctions, the threshold with them in is 1 / (1 - s) times the threshold without them. So your bars a day go from 78 to about 78 x (1 - s).
Here's what I measured on AAPL, 20 sessions of Nasdaq trades (26 Oct to 20 Nov 2026):
- The opening and closing cross together: 54% of AAPL's Nasdaq volume in regular hours. Two prints a day.
- Threshold set on continuous trading only: 78 volume bars a day, like you wanted.
- Threshold set on all the volume, auctions in: 36 bars a day in continuous trading. 54% fewer.
- The biggest single print, the closing cross on 20 Nov 2026: 14,712,751 shares in one trade. That's 71 volume bars on its own, and a volume bar can't split a trade.
So nothing is wrong with the data here, the auctions are real trades. It's a calibration mistake. Set your bar size on continuous trading and treat the open and close auctions as their own events, they're a different kind of trading.
HOW TO RUN IT
- pip install lse-data pandas pyarrow numpy
- Make a free account on London Strategic Edge and create an API key
- export LSE_API_KEY=your_free_key
- python auctions.py
Part A runs on the free key: AAPL 1-minute bars for the last 30 days. The closing auction lands in the 16:00 bar, so the script compares that bar to a normal minute and counts your volume bars a day in continuous trading with the threshold set with vs without it. Mine on 23 sessions to 25 Nov: the 16:00 bar was 209x a median minute, and continuous trading got 54 bars a day instead of 72 (24% fewer). These are all-venue bars, so the auction is a smaller share there than on Nasdaq alone. Part B finds the actual opening and closing cross prints in the Nasdaq tape over the last 10 sessions, that needs their Nasdaq TotalView data, so set LSE_NASDAQ_KEY as well.
WHERE THE DATA COMES FROM
I ran all of this on London Strategic Edge. The free plan gives you 10 years of history, 50 GB a month and an official API, enough to run this on any stock you trade.
Make the free account here:
If you want the Nasdaq trades for Part B, use my code RICK10 at checkout:
Full disclosure, I work with London Strategic Edge, that's my code.
Run it on your own ticker, post your bars a day with and without the auctions below and tell me which stock you used.
0
0 comments
Your Quant
2
AUCTIONS: TWO PRINTS A DAY THAT BREAK YOUR VOLUME BARS (SCRIPT)
powered by
Quantamentals for traders
skool.com/quantamentals-for-traders-5814
Beginners education under construction by Rick (Free)
Build your own community
Bring people together around your passion and get paid.
Powered by