It shows CPR range as per yesterday's HLC and also CPR range for last n number of trading sessions. For example: If you mention the value as two in Multi-day CPR (blue color) then it calculates the CPR using HLC of the last two trading sessions.
Also, the daily CPR is designed in such a way to highlight Virgin CPR (purple color) separately from the normal CPR(fuchsia color).
Release Notes
Now it also has "developing CPR", which shows the CPR based on today's HLC with intraday time-frame charts. It will be dynamic rather than static. It will be be useful to trail your stop loss.
Release Notes
Similar to developing CPR, we have multi-day developing CPR which shows the CPR based on high/lows of last n number of trading sessions with current candle's C in intraday time-frame charts.
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 publications is governed by House rules. You can favorite it to use it on a chart.
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.