Operations & Trading Infrastructure
Why I Wanted a Rulebook for Calling the S&P 500 Bottom

Every time the S&P 500 sells off hard, I ask myself the same question: is this the bottom, or just a pause on the way down?
My answers were not consistent. On a red day I would call a bottom because it felt exhausting. Two weeks later I would call the same chart bearish because the headlines were worse. The market had not changed its mind. I had, and I could not point to a rule that explained why.
So I tried to write the rules down. That turned into SPX / VIX Bottom Monitor, a small self-hosted dashboard that rates possible bottom formation with a deterministic rule engine. It does not place trades, and it is not investment advice. It is a way to make me look at the same five things in the same order every day.
The thing I actually look at is VIX versus VIX3M
A high VIX alone does not tell you much. VIX can stay high for weeks in a falling market. What I care about is whether short-term fear is higher than three-month fear, because that is when the curve is inverted and the market is still paying up for protection right now.
The monitor computes two numbers from that:
R = VIX / VIX3MSpread = VIX − VIX3M
A finalized close with R > 1 counts as an inversion day. A finalized move back to R <= 1 confirms that the inversion has resolved. An intraday move is only provisional, because a ratio that crosses 1 at 11:00 and crosses back by the close is not a signal, it is noise.
Around that core the engine also reads SPX, VVIX and DXY. Falling VVIX and a confirmed SPX stabilization strengthen a candidate setup. The dollar is only supporting context.

A rating is not an action
The first version mixed these up, and that was a mistake. “Conditions look like a bottom” and “you should buy something” are different statements, so the dashboard keeps them apart.
- L1 means elevated risk or not enough bottoming evidence.
- L2 means a possible bottom is forming. The action is still Continue waiting.
- L3 is a candidate for staged accumulation, but the action depends on where SPX is relative to a set of price zones.
- + means consider a small addition. The rules only show it when the rating is L3 and SPX is inside zone A, B or D.
- ! means suspend accumulation, because the plan may be invalidated.
That is why you can see an L3 on the chart without a plus sign. Good conditions in the wrong price zone still mean wait.

Solid markers and dashed markers
One thing I wanted to avoid was a history that quietly rewrites itself. So the chart distinguishes two kinds of markers. A solid marker is a saved scan with an Eastern Time timestamp: this is what the monitor actually said at the time. A dashed marker is a historical close replayed with today’s rules and zones.
The replay is useful for checking whether a rule change would have behaved sensibly in past selloffs. But it should never be confused with a live call, and the visual difference is there to stop me from doing that.
Scans, data and alerts
On U.S. equity trading days the monitor scans every hour from 10:00 to 16:00 ET, then does a close verification at 17:00 ET. It uses its own market calendar, accounts for early closes, and deduplicates alert events so one signal does not ping me five times.
Market data defaults to Yahoo Finance. If you have an approved Charles Schwab Trader API app you can connect it in Settings, and the dashboard labels every series that fell back to Yahoo. Alerts can go to a Discord or Slack webhook, or to a relay that accepts the JSON payload.
There is also an optional AI analysis panel. You can point it at Claude, OpenAI, Gemini or an OpenAI-compatible endpoint. I was careful about the boundary here: the classification always comes from the rule engine, and the model only explains it. I do not want a rating that changes because a language model felt differently on a given morning.
Running it
On macOS or Linux:
curl -fsSL https://raw.githubusercontent.com/tuolaji996/spx-vix-bottom-monitor/main/install.sh | bash
On Windows PowerShell:
irm https://raw.githubusercontent.com/tuolaji996/spx-vix-bottom-monitor/main/install.ps1 | iex
Then open http://127.0.0.1:8787. Running the same command again updates it. As with any piped installer, read the script first if you are not sure about it.
It also runs in Docker, and on ordinary PHP 8.1+ hosting through a browser installer. History is stored in local SQLite by default, with an optional TLS-enabled MySQL. If you expose it to the internet, set an admin token or create the administrator account in the PHP installer, and use HTTPS.
Why a rule engine and not just a prompt
The project started as a monitoring prompt, and that prompt is still in the repository and usable on its own. The dashboard is a deterministic approximation of it. The reason I moved to code is repeatability. The same inputs give the same rating, so when a rule fails in some selloff I can find which rule and fix it, instead of arguing with a paragraph of generated text.
It is still a conditional framework. A rating of L3 means the conditions I chose have been met. It does not mean the market has to agree.