Regime Filter
One line says bull or bear. The other says the swing is on. You want both.
Own pane · Daily · Indices first (SPY, QQQ); any liquid name
What it shows
- A weekly-trend regime line: 1 for bull, 0 for bear, with a hysteresis band so it does not flip on noise.
- A short-term swing line from a fast oscillator: 1 when a swing is on.
- Green background when regime and swing agree; alerts on every flip.
How it reads the market
The oldest rule in the book: trade swings in the direction of the regime. The regime comes from confirmed weekly closes against a long moving average, with a buffer band so a single bad week cannot flip the state. The swing state comes from a fast z-scored oscillator turning up out of oversold. Both on at once is the highest-quality window.
Settings
| Setting | Default | What it does |
|---|---|---|
| Regime length | 30 weeks | The moving average that defines the long-term trend. |
| Hysteresis band | 2% | How far beyond the average price must close to flip the regime. |
| Swing thresholds | on at -1, off at +1 | Where the short-term swing state switches. |
Everything is an input: colors, thresholds and time windows adjust from the indicator's settings panel, no code needed.
Built-in alerts
- Regime flips bull
- Regime flips bear
- Confluence on
- Confluence off
Set them once from TradingView's alert dialog and get notified on your phone, no chart-watching required.
Comes with the membership
The whole indicator suite is included with the paid plan, $20/month or $200/year. Subscribe, submit your TradingView username, and the scripts land in your TradingView library.
Founding offer: 50% off the first year, 6 days left.
Get full accessHow to add it to your chart
- Request access above with your TradingView username (one request covers the whole suite).
- We grant it on TradingView, usually within 24 hours; TradingView notifies you.
- On your chart, open Indicators → Invite-only scripts and add Regime Filter.
Our implementation of the classic regime-plus-swing confluence concept.