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.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。