williamskima8754

Intraday CPR with Previous Highs and Lows and Swing Highs/Lows

This Pine Script indicator plots the Central Pivot Range (CPR) for the current trading day along with previous day's high (PDH), low (PDL), and swing high/low (Swing H/L) values. It also includes the high, low, and swing high/low values from two days back for reference.

Key Features:
Central Pivot Range (CPR):

Pivot Point (PP): The central pivot point.
Bottom Central Pivot (BC): The lower boundary of the CPR.
Top Central Pivot (TC): The upper boundary of the CPR.
The area between the BC and TC is shaded for better visualization.
Previous Day and Two Days Back Values:

Previous Day High (PDH) and Low (PDL): Plots the high and low of the previous trading day.
Two Days Back High and Low: Plots the high and low from two trading days ago.
Previous Day Swing High/Low: The highest high and lowest low from a specified period (swing period) of the previous trading day.
Two Days Back Swing High/Low: The highest high and lowest low from a specified period (swing period) of two trading days ago.
Open-source script

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.

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.

Want to use this script on a chart?