OPEN-SOURCE SCRIPT
Daily 12/21 EMA Overlay

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.
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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.