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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.