OPEN-SOURCE SCRIPT

Daily 12/21 EMA Overlay

17
Daily 12/21 EMA Overlay

This indicator projects the daily 12 and 21 EMAs onto any timeframe as a soft, semi-transparent band. It is designed to give a constant higher-timeframe bias and dynamic support/resistance reference while you execute your systems on lower timeframes (4H, 1H, 15m, etc.).

The script uses request.security() to calculate the 12/21 EMAs on the daily chart only, then overlays those values on your current timeframe without recalculating them locally. This means the band always represents the true daily 12/21 EMAs, regardless of the chart you are viewing.

Key Features:

Fixed daily 12/21 EMA band, visible on all timeframes

Faded lines and fill to keep focus on your active intraday tools

Simple, minimal inputs (fast length, slow length, colors, band visibility)

Ideal as a higher-timeframe “backdrop” for systems built around EMA trend, rejections, or liquidity sweeps

How to Use

Add the indicator on any symbol and timeframe

Keep your normal intraday EMAs (e.g., EMA 12/21) for execution

Note: You can change the bands to not just be 12 or 21, you can change them if needed for your own systems or emas that you use.

This tool is intentionally lightweight: it does one job—showing the true daily EMA structure across all timeframes—and leaves trade execution logic to your primary system.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.