OPEN-SOURCE SCRIPT
PDH/PDL Breakout Pip Measurer

This indicator measures the maximum distance (in pips or points) that price travels after breaking through the Previous Day's High (PDH) or Previous Day's Low (PDL), before returning to a user-defined stop loss level. It provides statistical insights into breakout behavior for systematic trading analysis.
Input Parameters
Pip Multiplier: Adjust for different instruments (0.0001 for Forex, 1 for indices)
Bull Stop Loss Pips: Distance below PDH to define stop loss for bull breakouts
Bear Stop Loss Pips: Distance above PDL to define stop loss for bear breakouts
Show Table: Toggle statistics table display
Show Labels: Display pip measurements on chart
Show Levels: Toggle PDH/PDL level visibility
Statistics Table Includes
Total breakout counts (Bull/Bear/Combined)
Average pip distance per breakout type
Minimum and maximum recorded moves
Currently active breakout measurement
Input Parameters
Pip Multiplier: Adjust for different instruments (0.0001 for Forex, 1 for indices)
Bull Stop Loss Pips: Distance below PDH to define stop loss for bull breakouts
Bear Stop Loss Pips: Distance above PDL to define stop loss for bear breakouts
Show Table: Toggle statistics table display
Show Labels: Display pip measurements on chart
Show Levels: Toggle PDH/PDL level visibility
Statistics Table Includes
Total breakout counts (Bull/Bear/Combined)
Average pip distance per breakout type
Minimum and maximum recorded moves
Currently active breakout measurement
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.