Macro Trend Divider Band [TrendRider]Macro-Trend Divider Band (200D SMA + 21W EMA)
This indicator is a macro-trend “divider band” overlay designed to keep you aligned with the higher-timeframe trend using two widely-followed references:
200-period Daily SMA (200D SMA)
21-period Weekly EMA (21W EMA)
It visualizes the relationship between these two levels as a band, then adds context by coloring fills and marking crossover events.
What it does
Plots two higher-timeframe trend baselines
200D SMA : long-term market regime reference (daily structure).
21W EMA : macro swing/trend reference (weekly structure).
Builds a “Divider Band” between them
The space between 21W EMA and 200D SMA is filled (optional).
This band helps you see when the market is in a transitional zone vs clearly trending.
Adds Above/Below context fill
It fills between price ( open ) and the nearest band boundary.
The fill switches color depending on whether price is above or below the macro band.
Highlights macro crossover events
Background highlights show when 21W EMA crosses the 200D SMA .
Optional BUY / SELL labels are printed on these crossovers.
Elements included
200D SMA line (toggle on/off, customizable color)
21W EMA line (toggle on/off, customizable color)
Inside-band fill (between 21W EMA and 200D SMA , toggle + color)
Above/Below fill (between price and band edge, toggle + colors)
Dynamic labels tracking the current values of each HTF line (toggle)
Crossover bar/background highlights (toggle + colors)
BUY / SELL crossover markers (toggle)
How to use it
1) Macro regime filter (primary use)
Bullish regime bias : price holds above the band consistently.
Bearish regime bias : price holds below the band consistently.
Transition zone : price moves inside/around the band — reduce position size or demand stronger confirmation.
2) Trade direction alignment
Use the band as a “permission layer” :
Prefer longs when price is above the band.
Prefer shorts when price is below the band.
When price is inside the band, treat signals as lower-quality unless supported by additional structure/volume confirmation.
3) Crossover events as macro signals (slow, high-level)
EMA crossing above SMA can indicate a regime shift to bullish conditions.
EMA crossing below SMA can indicate a shift to bearish conditions.
These are not fast signals; they are best used for position bias, not precise entries.
4) Risk management reference
In bullish conditions, the band often acts as a macro support zone.
In bearish conditions, it can act as macro resistance.
You can use it to place:
wider stops (macro swing style), or
define “invalidations” when price closes decisively back through the band.
Practical setup suggestions
Best for : swing trading, position trading, long-term bias, market regime filtering.
Works on any chart timeframe : because the indicator itself pulls Daily and Weekly data.
Combine with : local structure (HH/HL, LH/LL), volume, momentum tools, or a trigger indicator for entries.
If you want, I can produce a version of this post formatted for TradingView (title + short description + bullet features + usage section), or adapt the messaging for crypto vs equities.
Pine Script® indicator






















