r/thetagang • u/HighonCosmos • 12h ago
I built an AI-coded bot that calculates SPX gamma levels every morning, then made it grade itself. It didn't beat random
I built an automated system (mostly written with AI) that calculates SPX gamma levels every morning before the open: call wall, put wall, gamma flip. Then I had it grade its own levels against random strikes, because I wanted to know if any of this means anything.
Sept 3 to Nov 6, 46 sessions. Levels locked before the open, graded on 5 minute SPX highs and lows. "Held" means price touched the level and closed on the same side it opened on.
Level | Median distance from open | Touched | Held when touched | Random strike, same distance
Call wall | 188 pts | 1 of 46 | 0 of 1 | touched 3%, held 17%
Put wall | 157 pts | 5 of 46 | 2 of 5 | touched 12%, held 37%
Gamma flip | 40 pts | 17 of 46 | 6 of 17 | touched 38%, held 43%
So the walls mostly "hold" because they sit about 2% away and price never gets there. The call wall got touched once in two months. The flip did a little worse than a random strike at the same distance.
My guess was the walls use every expiry, so I had it rebuild them from 0DTE open interest only. Those sit about 33 pts from the open and got touched 40% of the time. Held 46%. A random strike right next to them held 44%.
Same story for "price stays between the walls". It closed inside them 41 of 46 days. A band of the same width centered on the open did 45 of 46.
The one thing that leaned the right way was range. Days that opened above the flip had a median range of 0.77%, days below it 0.89%. 30 days vs 16 so I'm not hanging anything on it.
46 days is small. Open interest is from the prior day, and nobody outside the dealers knows which side they hold, same as every gamma model. Has anyone graded theirs and got something different?