OPEN-SOURCE SCRIPT

CPR - Daily & Next-Day (Suresh)

175
The indicator plots Central Pivot Range (CPR) levels in the exact "Pivot Boss" style — horizontal line segments (not full-width lines) that span only the day they belong to, plus historical days lined up so you can see how CPR has evolved. It has two parts:

Daily CPR — the standard CPR for each completed trading day, drawn as history.
Next-Day CPR — a live, forward-projected CPR based on the current (still-forming) day's price action, showing what tomorrow's CPR would look like if the day closed right now.

Core CPR formula
For any given day's High (H), Low (L), Close (C):

Pivot = (H + L + C) / 3
BC (Bottom Central) = (H + L) / 2
TC (Top Central) = (Pivot − BC) + Pivot

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.