OPEN-SOURCE SCRIPT
Central Pivot Range (CPR) with Signals

Central Pivot Range
The Central Pivot Range (CPR) is an indicator to identify key price points to set up trades. CPR is beneficial for intraday trading.
Before you understand the CPR, it is important for you to know the Support and Resistance; I’d suggest you read through this chapter to know what more about Support and Resistance before proceeding further.
The CPR consists of three components –
Pivot
Bottom Central Pivot (BC)
Top Central Pivot (TC)
These are derived out of the underlying’s High, Low, and Close calculations –
Pivot = (High + Low + Close)/3
Bottom CPR = (High + Low)/ 2
Top CPR = (Pivot – BC) + Pivot
Spend a minute to understand the formula. These are simple averages and manipulation to the averages. In any technical indicator, the moment you see averages, you need to associate the indicator to the underlying trend.
The CPR does just this, i.e. helps the trader identify key price points and the associated trend around these price points.
Today’s CPR values act as the reference for tomorrow’s trading. We will get back to this in a bit.
On Kite search for ‘Pivot’ in studies, and you’ll find the CPR indicator –
I’m looking 15-minute chart of M&M here. Once you load the CPR, the CPR loads as three horizontal lines, as seen below.
One thing that stands out is the varying width of the CPR. I’ve marked three points on the chart to discuss this.
I want you to look at the first arrow starting from left, ignore the CPR but look at the price action itself. Remember this is the 15-minute chart, and it is quite clear that the day started with a small green candle with not much movement through the day. The open and close were close to each other.
Whenever, we have a sideways movement, the next day’s CPR narrow ranged, this is exactly what we observe on the next day. Now the 2nd day itself was trending day. Hence the CPR for 3rd day was a wide-ranged one.
So the point is –
If today is a narrow range day, tomorrow’s CPR will be a narrow ranged CPR.
If today is a trending day, tomorrow’s CPR is a wide-ranged one. Higher the trend, wider is the CPR.
Alright, so how do we use the CPR? Well, this is quite straightforward –
Bullish outlook, look for buying opportunities when the current market price is higher than ‘Top central pivot’ (TC).
Let me elaborate. Assume a stock has rallied for a bit. The current market price is higher than the TC, and you are looking for an opportunity to set up a buy trade.
You can now wait till the stock arrests its rally and retraces back to the TC line.
I’ve highlighted a possible opportunity here –
From a price action perspective, when the current market price is higher than the TC, it indicates that the traders are willing to buy even though the average price is higher. Hence, it would help if you are looking for buying opportunities. Remember, when CMP is higher than TC, the TC now acts as a support line.
Likewise, when the stock or the index is trading lesser than the “Bottom Central Pivot’ (BC). When the current market price is less than that BC, it implies that there is bearishness in the market, hence look for selling opportunities.
Again, look for a price pull back to the BC line before initiating a fresh short.
You can even trade the stock while it is within the CPR. Trading while the stock price is within the CPR is like a range trade.
You buy when the stock is at BC, with TC as a target and sell (fresh short) when the stock is at the TC with an expectation that the price declines to BC soon.
Of course, I know many traders who prefer not to trade the range and prefer to trade only the pullbacks. I too would prefer to use CPR only to trade the pullbacks.
Lastly, here is something that you need to be aware of when trading the CPR.
When you plot the EOD CPR, the previous month’s OHLC is referenced.
Previous week’s OHLC is a reference when you plot CPR for 30mins and 1-hour candles.
Previous day’s OHLC is referenced when you plot CPR for 1, 3, 5, 10, and 15 minutes candles.
Happy trading.
Key Takeaways from this chapter
You can trade from the chart by selecting the trade button.
The trade button is a floating window which you can place anywhere on the chart.
The candle pattern helps identify the candlestick patterns, use this to reconfirm the pattern.
CPR helps you identify the S&R pattern
It is considered bullish if the current market price is higher than the TC line.
It is considered bearish if the current market price below the BC line.
The Central Pivot Range (CPR) is an indicator to identify key price points to set up trades. CPR is beneficial for intraday trading.
Before you understand the CPR, it is important for you to know the Support and Resistance; I’d suggest you read through this chapter to know what more about Support and Resistance before proceeding further.
The CPR consists of three components –
Pivot
Bottom Central Pivot (BC)
Top Central Pivot (TC)
These are derived out of the underlying’s High, Low, and Close calculations –
Pivot = (High + Low + Close)/3
Bottom CPR = (High + Low)/ 2
Top CPR = (Pivot – BC) + Pivot
Spend a minute to understand the formula. These are simple averages and manipulation to the averages. In any technical indicator, the moment you see averages, you need to associate the indicator to the underlying trend.
The CPR does just this, i.e. helps the trader identify key price points and the associated trend around these price points.
Today’s CPR values act as the reference for tomorrow’s trading. We will get back to this in a bit.
On Kite search for ‘Pivot’ in studies, and you’ll find the CPR indicator –
I’m looking 15-minute chart of M&M here. Once you load the CPR, the CPR loads as three horizontal lines, as seen below.
One thing that stands out is the varying width of the CPR. I’ve marked three points on the chart to discuss this.
I want you to look at the first arrow starting from left, ignore the CPR but look at the price action itself. Remember this is the 15-minute chart, and it is quite clear that the day started with a small green candle with not much movement through the day. The open and close were close to each other.
Whenever, we have a sideways movement, the next day’s CPR narrow ranged, this is exactly what we observe on the next day. Now the 2nd day itself was trending day. Hence the CPR for 3rd day was a wide-ranged one.
So the point is –
If today is a narrow range day, tomorrow’s CPR will be a narrow ranged CPR.
If today is a trending day, tomorrow’s CPR is a wide-ranged one. Higher the trend, wider is the CPR.
Alright, so how do we use the CPR? Well, this is quite straightforward –
Bullish outlook, look for buying opportunities when the current market price is higher than ‘Top central pivot’ (TC).
Let me elaborate. Assume a stock has rallied for a bit. The current market price is higher than the TC, and you are looking for an opportunity to set up a buy trade.
You can now wait till the stock arrests its rally and retraces back to the TC line.
I’ve highlighted a possible opportunity here –
From a price action perspective, when the current market price is higher than the TC, it indicates that the traders are willing to buy even though the average price is higher. Hence, it would help if you are looking for buying opportunities. Remember, when CMP is higher than TC, the TC now acts as a support line.
Likewise, when the stock or the index is trading lesser than the “Bottom Central Pivot’ (BC). When the current market price is less than that BC, it implies that there is bearishness in the market, hence look for selling opportunities.
Again, look for a price pull back to the BC line before initiating a fresh short.
You can even trade the stock while it is within the CPR. Trading while the stock price is within the CPR is like a range trade.
You buy when the stock is at BC, with TC as a target and sell (fresh short) when the stock is at the TC with an expectation that the price declines to BC soon.
Of course, I know many traders who prefer not to trade the range and prefer to trade only the pullbacks. I too would prefer to use CPR only to trade the pullbacks.
Lastly, here is something that you need to be aware of when trading the CPR.
When you plot the EOD CPR, the previous month’s OHLC is referenced.
Previous week’s OHLC is a reference when you plot CPR for 30mins and 1-hour candles.
Previous day’s OHLC is referenced when you plot CPR for 1, 3, 5, 10, and 15 minutes candles.
Happy trading.
Key Takeaways from this chapter
You can trade from the chart by selecting the trade button.
The trade button is a floating window which you can place anywhere on the chart.
The candle pattern helps identify the candlestick patterns, use this to reconfirm the pattern.
CPR helps you identify the S&R pattern
It is considered bullish if the current market price is higher than the TC line.
It is considered bearish if the current market price below the BC line.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.