← All work 03 / 29

Regime-Aware

Market Signals Bot

K-means market regimes and VIX rules, backtested and delivered to Telegram every weekday

  • Data
  • Code

A personal research project. Not financial advice.

Every weekday evening this bot posts a chart and a call (buy, hold or sell) for SPY and VT into a Telegram group, plus a chart-only panel for Singapore's STI.

3
markets: SPY · VT · STI
k = 4
market regimes
+8.6 pp
from regime smoothing
5
evenings a week
The evening message25–26 Nov 2026, from the Telegram group
SPY
HOLD
strategy
BB · VIX clustered
strong buys (1y)
25
weak buys
9
weak sells
3
VT (VWRA)
HOLD
strategy
BB/RSI · VIX regime
strong buys (1y)
18
weak sells
3
regimes
k-means, k = 4
STI
HOLD
mode
chart-only
investable proxy
ES3.SI
overlays
EMA 50 · Bollinger
momentum
RSI

The strategies

SPY uses VIX Bollinger-band mean reversion with a spike-fade rule: buy when fear spikes and starts to fade. VT uses a hybrid that switches between momentum and mean reversion depending on the market regime, where the regimes come from k-means clustering (k = 4) with VIX as a feature, and RSI as a confirmation.

Keeping it honest

Most of the work is in not fooling myself. Every change is recorded in a methodology decision log. For example, smoothing SPY's regime labels with a 5-day rolling mode stopped regimes from flickering, and was validated at +8.6 percentage points over the full period against the unsmoothed version.

  • Assets move through go-live stages: chart-only, research, paper, then advisory.
  • A quarterly walk-forward re-tune searches parameters inside anti-overfit gates, and only a human can apply the result.
  • A data sanity guard refuses to issue a signal on a suspect price bar, and says so.
  • A heartbeat on a separate channel alerts me if the daily run stops, and a monthly report checks live execution against the backtest's assumptions.
Go-live stagesfrom the asset registry
Chart-onlycharts, no signals · STI
Researchadopted only if train, validation and holdout are all positive
Papersignals written to the live ledger, no pings, ≥ 6 months
Advisoryfull signals with text pings · SPY, VT

Promotion only happens through the anti-overfit gates, and a human applies every re-tune.

STI chart with EMA and Bollinger bandsSTI: chart-only, with an investable proxy noted