OPEN-SOURCE SCRIPT
已更新 HTF Gap Zones + MA Suite

This indicator plots higher-timeframe moving averages and highlights unfilled gap zones directly on your current chart.
It uses a configurable anchor timeframe, such as Daily or Weekly, to calculate EMA and SMA levels while allowing you to view them on lower timeframes. This helps traders keep key higher-timeframe structure visible without constantly switching charts.
The script also scans recent higher-timeframe candles for bullish and bearish gaps. Only unclosed gaps are displayed, making it easier to identify potential areas of interest, imbalance, support, resistance, or price reaction zones.
Features:
Configurable higher-timeframe anchor
Detects bullish and bearish unfilled HTF gaps
Adjustable gap lookback
Custom bullish and bearish gap colors
Five customizable EMAs
Five customizable SMAs
Optional labels for moving averages
Solid, dotted, or dashed visual style
Designed to keep higher-timeframe context visible on intraday charts
This tool is useful for traders who want to combine higher-timeframe structure, gap/imbalance zones, and trend-following moving averages in one clean overlay.
It uses a configurable anchor timeframe, such as Daily or Weekly, to calculate EMA and SMA levels while allowing you to view them on lower timeframes. This helps traders keep key higher-timeframe structure visible without constantly switching charts.
The script also scans recent higher-timeframe candles for bullish and bearish gaps. Only unclosed gaps are displayed, making it easier to identify potential areas of interest, imbalance, support, resistance, or price reaction zones.
Features:
Configurable higher-timeframe anchor
Detects bullish and bearish unfilled HTF gaps
Adjustable gap lookback
Custom bullish and bearish gap colors
Five customizable EMAs
Five customizable SMAs
Optional labels for moving averages
Solid, dotted, or dashed visual style
Designed to keep higher-timeframe context visible on intraday charts
This tool is useful for traders who want to combine higher-timeframe structure, gap/imbalance zones, and trend-following moving averages in one clean overlay.
發行說明
Updated the publication chart to better comply with TradingView’s chart publishing rules.The chart has been cleaned up by removing unrelated scripts and visual clutter, so the indicator’s output is easier to identify and understand.
No functional changes were made to the indicator logic in this update.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。