OPEN-SOURCE SCRIPT
PD Break Behavior Analysis

The PD Break Behavior Analysis indicator tracks and classifies daily price action relative to the previous day's high (PDH) and low (PDL). It evaluates how often price:
Breaks only the PDH (single upper breakout)
Breaks only the PDL (single lower breakdown)
Breaks both PDH and PDL (double breakout)
Remains inside the previous day’s range (no break)
Gaps and stays entirely above the previous day’s high (strong bullish gap)
The indicator maintains rolling counts for the past:
50 trading days
100 trading days
300 trading days
These statistics are displayed in a clear on-chart table, providing insight into market behavior over multiple timeframes.
Breaks only the PDH (single upper breakout)
Breaks only the PDL (single lower breakdown)
Breaks both PDH and PDL (double breakout)
Remains inside the previous day’s range (no break)
Gaps and stays entirely above the previous day’s high (strong bullish gap)
The indicator maintains rolling counts for the past:
50 trading days
100 trading days
300 trading days
These statistics are displayed in a clear on-chart table, providing insight into market behavior over multiple timeframes.
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.
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.
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.