OPEN-SOURCE SCRIPT
已更新 MTF Trend Dashboard

This indicator aggregates trend conditions from four user-selected timeframes into a single table, so you can read higher-timeframe context without switching charts.
How it works
Each timeframe is evaluated with three independent checks:
EMA trend — fast EMA above/below slow EMA (default 20/50)
RSI — above/below the 50 midline (default length 14)
MACD — MACD line above/below its signal line (12/26/9)
The three checks are combined into a simple score from -3 to +3. A score of +2 or higher is shown as BULL, -2 or lower as BEAR, and anything in between as FLAT. The table shows the raw RSI value and the state of each check per timeframe, so you can always see why a timeframe is rated the way it is.
Chart plots (all optional)
Fast/slow EMA of the current chart timeframe
Background highlight while all four timeframes are aligned in the same direction
A small marker on the bar where full alignment begins
Alerts
Two alert conditions are included: all timeframes aligned bullish, and all timeframes aligned bearish.
Repainting
By default, higher-timeframe values are taken from confirmed bars only ("Use confirmed bars only" setting), so the table does not change retroactively. If you disable this setting, the current (unclosed) higher-timeframe bar is used and its values can update until that bar closes.
Notes and limitations
This is a context/confluence tool, not a trading system. Alignment across timeframes describes current conditions only and implies nothing about future price movement. Test any idea thoroughly before using it in live trading.
How it works
Each timeframe is evaluated with three independent checks:
EMA trend — fast EMA above/below slow EMA (default 20/50)
RSI — above/below the 50 midline (default length 14)
MACD — MACD line above/below its signal line (12/26/9)
The three checks are combined into a simple score from -3 to +3. A score of +2 or higher is shown as BULL, -2 or lower as BEAR, and anything in between as FLAT. The table shows the raw RSI value and the state of each check per timeframe, so you can always see why a timeframe is rated the way it is.
Chart plots (all optional)
Fast/slow EMA of the current chart timeframe
Background highlight while all four timeframes are aligned in the same direction
A small marker on the bar where full alignment begins
Alerts
Two alert conditions are included: all timeframes aligned bullish, and all timeframes aligned bearish.
Repainting
By default, higher-timeframe values are taken from confirmed bars only ("Use confirmed bars only" setting), so the table does not change retroactively. If you disable this setting, the current (unclosed) higher-timeframe bar is used and its values can update until that bar closes.
Notes and limitations
This is a context/confluence tool, not a trading system. Alignment across timeframes describes current conditions only and implies nothing about future price movement. Test any idea thoroughly before using it in live trading.
發行說明
Update: improved higher-timeframe value handling- Higher-timeframe values now always reference the last completed HTF bar. Historical bars and realtime now behave identically — previously, historical bars could reflect HTF values slightly earlier than they would have been available in realtime.
- As a result, the alignment background/markers on historical bars may shift slightly compared to the previous version. Realtime behavior going forward is unaffected.
- No settings changes are required.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。