OPEN-SOURCE SCRIPT

Central Pivot Range - Daily and Weekly

entral Pivot Range is a versatile technical indicator usually comprising of 3 levels – a central pivot point (pivot), top central level (TC), and bottom central level (BC).

The calculation of the levels is very simple:

TC = (Pivot – BC) + Pivot

Pivot = (High + Low + Close)/3

BC = (High + Low)/2

As you can see from the above CPR formula, all the 3 levels are calculated using just 3 variables, High, Low, and Close price. When you add CPR levels in a stock’s chart, TC is highest, the pivot is at the center and BC is the lowest level. However, depending on market conditions TC’s value may be lower than BC. Irrespective of the calculation, the highest of the 3 values is typically termed as TC and the lowest is BC.

The fundamental idea behind this indicator is that the particular day’s trading range captures everything about the market sentiment, and hence this range can be used to predict the price movement of the following days.
Trend Analysis

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer