OPEN-SOURCE SCRIPT
RSI & MACD MTF Station [v2c_cha]

Overview
The RSI & MACD MTF Heatmap Station is a comprehensive, all-in-one momentum and trend analysis tool designed to eliminate chart clutter. Traditionally, traders relying on Multi-Timeframe (MTF) analysis must either split their screens into multiple layouts or flood their indicator panels with overlapping "spaghetti" lines. This indicator solves that problem by consolidating the Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) across 9 different timeframes into a single, compact visual Heatmap.
Core Concepts & Calculations
This indicator relies on the standard mathematical formulas for RSI (default 14 periods) and MACD (default 12, 26, 9). However, its core value lies in how it processes and displays this data:
Non-Repainting MTF Data: All higher-timeframe data is fetched using barmerge.lookahead_off and barmerge.gaps_off to ensure strict compliance with non-repainting rules. What you see on historical bars is exactly what would have printed in real-time.
Visual Anchoring: To display both the current RSI and current MACD lines harmoniously in the same pane without skewing the scale, the MACD line is mathematically anchored to the RSI's 50-level (neutral line).
How to Read the Heatmap Dashboard
The dashboard is a 9-column by 3-row matrix located in the corner of your screen, covering timeframes from 1-minute to 1-Month.
Row 1 (RSI - Extreme Momentum): This row measures whether an asset is mathematically overbought or oversold.
🔴 Red (RSI >= 70): Overbought. The asset is extended to the upside in this specific timeframe.
🟢 Green (RSI <= 30): Oversold. The asset is extended to the downside.
⚫ Dark Gray (31-69): Neutral. The asset is flowing within normal momentum boundaries.
Row 2 (MACD - Trend Direction): This row measures the overarching trend control based on the MACD main line crossing the Zero line.
🟢 Green (MACD > 0): Bullish trend control.
🔴 Red (MACD < 0): Bearish trend control.
Practical Trading Application (Top-Down Analysis)
This tool excels at spotting high-probability continuation setups by aligning the macro-trend with micro-momentum pullbacks.
Example Setup (The Buy Dip): A trader observing a 5-minute chart looks at the dashboard. The MACD row shows Green for the 1H and 4H timeframes, indicating a strong macro bullish trend. However, the RSI row shows Green (< 30) for the 5m and 15m timeframes. This tells the trader that while the macro trend is up, there is short-term panic/oversold conditions. This alignment provides a mathematical, rules-based area to look for long entries (buying the dip) in the direction of the macro trend.
Key Features & Customization
Fully Customizable: You can change the lengths and smoothing periods for both the RSI and MACD.
Dashboard Positioning: Move the heatmap to any corner of the screen to fit your layout.
Decluttered Charting: By default, only the current timeframe's RSI and MACD lines are plotted, while all MTF data is neatly organized inside the heatmap.
Disclaimer: This indicator is for educational and analytical purposes only. It does not provide financial advice or guarantee profitable trades. Always combine momentum and trend indicators with proper risk management and price action analysis.
The RSI & MACD MTF Heatmap Station is a comprehensive, all-in-one momentum and trend analysis tool designed to eliminate chart clutter. Traditionally, traders relying on Multi-Timeframe (MTF) analysis must either split their screens into multiple layouts or flood their indicator panels with overlapping "spaghetti" lines. This indicator solves that problem by consolidating the Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD) across 9 different timeframes into a single, compact visual Heatmap.
Core Concepts & Calculations
This indicator relies on the standard mathematical formulas for RSI (default 14 periods) and MACD (default 12, 26, 9). However, its core value lies in how it processes and displays this data:
Non-Repainting MTF Data: All higher-timeframe data is fetched using barmerge.lookahead_off and barmerge.gaps_off to ensure strict compliance with non-repainting rules. What you see on historical bars is exactly what would have printed in real-time.
Visual Anchoring: To display both the current RSI and current MACD lines harmoniously in the same pane without skewing the scale, the MACD line is mathematically anchored to the RSI's 50-level (neutral line).
How to Read the Heatmap Dashboard
The dashboard is a 9-column by 3-row matrix located in the corner of your screen, covering timeframes from 1-minute to 1-Month.
Row 1 (RSI - Extreme Momentum): This row measures whether an asset is mathematically overbought or oversold.
🔴 Red (RSI >= 70): Overbought. The asset is extended to the upside in this specific timeframe.
🟢 Green (RSI <= 30): Oversold. The asset is extended to the downside.
⚫ Dark Gray (31-69): Neutral. The asset is flowing within normal momentum boundaries.
Row 2 (MACD - Trend Direction): This row measures the overarching trend control based on the MACD main line crossing the Zero line.
🟢 Green (MACD > 0): Bullish trend control.
🔴 Red (MACD < 0): Bearish trend control.
Practical Trading Application (Top-Down Analysis)
This tool excels at spotting high-probability continuation setups by aligning the macro-trend with micro-momentum pullbacks.
Example Setup (The Buy Dip): A trader observing a 5-minute chart looks at the dashboard. The MACD row shows Green for the 1H and 4H timeframes, indicating a strong macro bullish trend. However, the RSI row shows Green (< 30) for the 5m and 15m timeframes. This tells the trader that while the macro trend is up, there is short-term panic/oversold conditions. This alignment provides a mathematical, rules-based area to look for long entries (buying the dip) in the direction of the macro trend.
Key Features & Customization
Fully Customizable: You can change the lengths and smoothing periods for both the RSI and MACD.
Dashboard Positioning: Move the heatmap to any corner of the screen to fit your layout.
Decluttered Charting: By default, only the current timeframe's RSI and MACD lines are plotted, while all MTF data is neatly organized inside the heatmap.
Disclaimer: This indicator is for educational and analytical purposes only. It does not provide financial advice or guarantee profitable trades. Always combine momentum and trend indicators with proper risk management and price action analysis.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.