sherwind

SD - Pivot Range

sherwind Updated   
This script is an implementation of Central Pivot Range described at pivotboss.com/2010/0...e-to-the-pivot-range
Release Notes:
Central Pivot Range ('CPR') Indicator for TradingView

This script is an implementation of Central Pivot Range described at pivotboss.com/2010/0...-to-the-pivot-range.

Inputs

  • Number of Daily 'CPR' Back: Set the number of calendar days back to plot historical daily 'CPR'. The default value is 7. Non-trading days are not taken into account. A value of 7, for example, would display only 5 'CPR' for a 24x5 market.
  • Number of Weekly 'CPR' Back: Set the number of calendar weeks back to plot historical weekly 'CPR'. The default value is 0.
  • Number of Monthly 'CPR' Back: Set the number of calendar months back to plot historical monthly 'CPR'. The default value is 0.
  • Number of Yearly 'CPR' Back: Set the number of calendar years back to plot historical yearly 'CPR'. The default value is 0.
Release Notes:
Code cleanup
Release Notes:
Ensure the highest level of TC and BC is labelled TC, and the lowest of the two is labelled BC
Release Notes:
This version uses Pine Script v4 line objects
Release Notes:
list]
Use new arrays feature to limit how may indicators to show[
Allow color to be changed
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?