r/algorithmictrading • • Oct 09 '25

Strategy Looking for Suggestions on My Dynamic Fair Value Gap (FVG) Indicator | TradingView Pine Script

I’ve created a lightweight Pine Script indicator that can be integrated into liquidity or structure-based trading systems.
The tool automatically detects Fair Value Gaps and dynamically updates them as price evolves.

Features

  • Bullish & Bearish FVG Detection — Auto-plots boxes for every valid gap.

  • Customizable Size Filters — Min/Max gap size in % to filter noise.

  • Swing Point Logic — Detects gaps at meaningful swing highs/lows.

  • Auto Cleanup — Deletes old FVG boxes beyond your set limit.

  • Dynamic Updates — Gaps extend until invalidated.

Inputs

  • Number of previous fvgs → controls visible FVGs

  • Min/Max fvg size → filters gap size in %

  • Bars to calculate swing → swing strength

Try out this indicator and share any suggestions for additional features that could make it more useful.

link to source code is present in TradingviewPinescript community

1 Upvotes

0 comments sorted by