PROTECTED SOURCE SCRIPT

High Time Frame FVG [TakingProphets]

92
HTF FVG [TakingProphets]

The HTF FVG indicator is built for traders who want a clean, multi-timeframe view of Fair Value Gaps (FVGs) without manually flipping charts. It automatically detects unmitigated FVGs across up to five higher timeframes and overlays them directly on your active chart, keeping your execution bias aligned with higher-timeframe liquidity.

✨ What it does

📌 Multi-timeframe mapping – Detects and plots bullish/bearish FVGs across up to 5 custom HTFs + your current chart.

🧩 Auto-labeling – Each gap is tagged with its originating timeframe (e.g., M5, H1, D1).

🔄 Live updates – FVGs extend forward in time and are automatically removed once mitigated based on your plan.

🟢 Inverse FVGs (optional) – Highlight “inverse gaps” for traders who utilize them in reversal models.

🎯 Consequent Encroachment lines – Enable mid-gap CE levels for precision-based trade management.

⚡ Optimized performance – Built with array management, capped lookback periods, and per-timeframe limits for smooth charting.

🛠️ How it works

Fair Value Gaps are detected using a 3-candle structure:

Bullish FVG → the high of two candles ago is below the low of the prior candle.

Bearish FVG → the low of two candles ago is above the high of the prior candle.

For each selected timeframe:

When an FVG forms, a box is drawn from the gap boundaries and extended forward by a configurable number of bars.

If price closes into the gap on its originating timeframe, the box is automatically removed.

If Consequent Encroachment is enabled, a mid-gap line is plotted for refined targeting.

When multiple gaps exist per side, only the closest unmitigated one remains highlighted for clarity.

⚙️ Inputs & customization

Detection Sensitivity → High / Medium / Low

Lookback Period → 1 Day / 1 Week / 1 Month / Max

Extend Gaps → Add extra forward bars beyond the originating candle.

Show Consequent Encroachment → Toggle CE midlines on/off.

Show Inverse FVGs → Mark inverted gaps for advanced models.

Custom HTFs → Choose up to 5 timeframes to map onto your execution chart.

Appearance Settings → Configure colors, transparency, label size, and gap boundary styles.

📈 Practical tips

Use smaller execution timeframes (e.g., 1m–5m) and overlay multiple HTFs (e.g., M15, H1, H4, D1).

Watch for stacked HTF FVGs in the same price zone — these often create higher-probability draw areas.

Pair CE midlines with session timing, PD arrays, and liquidity concepts to refine entries.

Limit your lookback period and max stored FVGs for better performance during volatile sessions.

📌 Notes

This tool does not generate buy/sell signals. It’s a context mapping utility to help align your trading plan with higher-timeframe structure.

Weekend gaps are automatically filtered out to reduce false positives.


🏷️ Credits & disclaimer

Concepts: ICT / Smart Money methodologies around imbalances and liquidity gaps.

Disclaimer: This script is for educational purposes only and should not be considered financial advice. Always test on demo and trade your own plan.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.