OPEN-SOURCE SCRIPT
已更新 SD - Pivot Range

This script is an implementation of Central Pivot Range described at pivotboss.com/2010/05/31/a-quick-guide-to-the-pivot-range
發行說明
Central Pivot Range ('CPR') Indicator for TradingViewThis script is an implementation of Central Pivot Range described at pivotboss.com/2010/05/31/a-quick-guide-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.
發行說明
Code cleanup發行說明
Ensure the highest level of TC and BC is labelled TC, and the lowest of the two is labelled BC發行說明
This version uses Pine Script v4 line objects發行說明
list]* Use new arrays feature to limit how may indicators to show[
* Allow color to be changed
開源腳本
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.
免責聲明
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.
開源腳本
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.
免責聲明
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.