OPEN-SOURCE SCRIPT
Updated

FVG Screener improved (Nephew_Sam_) - Sorted Packed Arrays

154
FVG Screener and has optimization improvements, unsure if working correctly with sorts.

need to investigate, but structure is sound.
Release Notes
Introducing the MTF Fair Value Gap Indicator—a tool designed to pinpoint liquidity voids where prices rapidly move away, similar to weekend gaps but occurring during trading hours. The indicator generates a table that flags when price enters a multi-timeframe Fair Value Gap (FVG).

Key Details:

Timeframe Considerations:

The indicator performs best when identifying FVGs on a higher timeframe than your chart's.
Using it on a lower timeframe (for example, a 1-hour chart detecting on a 5-minute chart) may result in repainting issues.
A significant mismatch between your chart’s timeframe and the indicator’s timeframe can slow down computation.
To optimize performance, only use timeframes that closely match your chart’s timeframe.
Display Setup:

The display is split into two sections:
The left side focuses on higher timeframes (e.g., 1hr, 4hr, Daily).
The right side displays lower timeframes (e.g., 5m, 15m, 30m).
Efficiency Enhancements:

I have improved the efficiency of the indicator with multipacking, sorting, and automatic reversal optimization.
The open source code is available for anyone interested in further refining its performance.
This indicator is an ideal tool for traders looking to capitalize on FVGs with a streamlined, optimized approach.

Enabled a Debug feature to plot the FVGs. I'll be working on improving the display of those potentially.
Release Notes
Need to do bug fix, and testing next to ensure stability.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.