OPEN-SOURCE SCRIPT
MTF 4h Structure + FVG (CORRECTED)

This is a fully customizable Multi-Timeframe (MTF) indicator for SMC traders. It overlays true Higher Timeframe market structure onto your current chart. While it defaults to the 4-Hour (4h) structure, you can easily change this to 1h, Daily, or Weekly in the settings to suit your strategy.
Key Features:
1. Dynamic MTF Overlay: Select any Higher Timeframe (HTF) in the settings. The script calculates true pivots on that timeframe and projects them onto your chart without repainting issues.
2. Active Dealing Range: Automatically displays the Swing High and Swing Low of the selected HTF.
3. Equilibrium (EQ): Marks the 50% level of the range to help you identify Premium (Sell) vs. Discount (Buy) zones.
4. HTF Fair Value Gaps (FVG): Detects and draws unmitigated FVGs from your selected timeframe, acting as high-probability POIs.
Visuals & Logic:
- Green/Red: Signals CHoCH (Trend Reversals).
- Gray: Signals BOS (Trend Continuation) - keeping the chart clean.
- Smart Calculation: Calculates structure explicitly on the HTF data to prevent false signals on lower timeframes.
How to use:
1. Add to your chart (e.g., 5m or 15m).
2. Open Settings -> Select your desired "Higher Timeframe" (Default is 4h).
3. Trade in the direction of the HTF Trend (Labels) and look for entries within HTF FVGs in the correct Discount/Premium zone.Pine Script®
Key Features:
1. Dynamic MTF Overlay: Select any Higher Timeframe (HTF) in the settings. The script calculates true pivots on that timeframe and projects them onto your chart without repainting issues.
2. Active Dealing Range: Automatically displays the Swing High and Swing Low of the selected HTF.
3. Equilibrium (EQ): Marks the 50% level of the range to help you identify Premium (Sell) vs. Discount (Buy) zones.
4. HTF Fair Value Gaps (FVG): Detects and draws unmitigated FVGs from your selected timeframe, acting as high-probability POIs.
Visuals & Logic:
- Green/Red: Signals CHoCH (Trend Reversals).
- Gray: Signals BOS (Trend Continuation) - keeping the chart clean.
- Smart Calculation: Calculates structure explicitly on the HTF data to prevent false signals on lower timeframes.
How to use:
1. Add to your chart (e.g., 5m or 15m).
2. Open Settings -> Select your desired "Higher Timeframe" (Default is 4h).
3. Trade in the direction of the HTF Trend (Labels) and look for entries within HTF FVGs in the correct Discount/Premium zone.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.