Designed with lower time frame entries in mind (though will work on HTF just as well), this indicator automatically draws the closest, non-mitigated FVG, to the current price, cutting out the work of looking for what FVG is relevant.
The indicator also has an option to show when the current nearest pair of FVGs form a BPR or 'balanced price range'.
There are various option for what counts as mitigation, including no mitigation at all, and when mitigated an FVG is no longer considered for proximity searching.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.