OPEN-SOURCE SCRIPT
Updated Balanced Price Range (BPR)

This script finds BPR's, which some simply refer to as a "double Fair Value Gap" (FVG). In a BPR, there is an overlapping vertical area between a recent bullish and bearish FVG. You may tune the parameters to filter out smaller FVG's or BPR's, as well as how far back the indicator must look to find a matching pair.
Release Notes
Two updates:1. You can edit the color used to draw the BPR boxes
2. New "Only Clean BPR" setting that, when checked, doesn't show BPR's when price interferes with the range prior to its creation. Leaving it off will show all BPR's regardless of how price traded in between the bearish and bullish FVG's
Release Notes
Updating the chart imageRelease Notes
Fixed minor issue with the last update regarding "Only Clean BPR" settingRelease Notes
Updated the threshold values such that:1. The default value is 0 for both, that way all BPR's will show (to avoid confusion for new users)
2. Valid FVG's and BPR's will be considered if their range is greater than *or equal to* the threshold value, instead of greater than
Release Notes
Two updates:1. You can now add alerts that will tell you when a new BPR is created
2. New "Delete Old BPR" setting that, when enabled, will delete all old BPR's that have been invalidated or overwritten
Release Notes
Edited alert function so that users can edit the message sent when a new BPR is createdRelease Notes
Fixed an issue where BPR's were being created and alerted before the following candle had a chance to invalidate the range (needed to delay bear/bull signals by one bar)Release Notes
Removed the FVG threshold to avoid confusion. All FVGs will now be considered for a potential BPRRelease Notes
Updating thumbnail imageRelease Notes
Updated script titlesOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
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.