TradingView
johntradingwick
26. Jun. 2022 14:59

All-in-one CPR indicator  

S&P CNX NIFTY INDEX FUTURESNSE

Beschreibung

Introduction and Acknowledgement:
The script is basically a mashup script and provides a combined functionality of various indicators. I'll explain the usefulness and the optimal usage of the script after giving the credits where it is due. A CPR indicator for visually identifying the trend along with the strength of the trend is NOT available in the public library of TradingView. Hence, the need of this indicator.

The credit of creating the original indicators remain unknown to me but I would like to acknowledge the authors whose formulae and codes I have used for creating this mashup indicator.
- Frank Ochoa
- Guruprasad Meduri
- Rafael Zioni
- Stoked Stocks
- Pine team for default indicators

The prime focus of the script is identifying and simplifying the 2 main aspects of a trend:
1. Direction / Underlying trend
2. Strength of the trend

Flaws in traditional CPR:
Some may see this as a flaw, some may not. So take my opinion with a grain of salt. In general, the traditional CPR indicator is used to plot just support and resistance levels, and the trend identification is purely discretionary. In addition to this, there is no way to assess the strength of the move without using a dedicated volumed based indicator. This causes amateur traders to take counter trades to the market direction.

What is the need of this hybrid indicator?
A CPR indicator that also aids in visually identifying the trend and the strength of the trend with respect to the price action in NOT available in the public library of TradingView. The traditional CPR can be used to assess the rough direction of the market but if it combined with the Hull ribbon, the probability of identifying the trend increases manifold. Hence, I decided to create this mashup indicator.

In addition to the basic CPR pivots, the script provides the functionality of the following indicators:

1. HMA based trend ribbons with auto buy/sell signals
2. Volatility based bands - Bollinger bands, Keltner channel, Donchian channel, envelope.
3. Coloured volume candles to determine the strength of the trend
4. CPR with daily, weekly, and monthly levels
5. Previous day high/low
6. Tomorrow CPR
7. 3 Simple moving averages
8. Volume Weighted Average Price (VWAP)

Correct usage of the indicator:
The optimal usage of the indicators consists of mainly 2 parts:
1. Identification of the trend using the combination of CPR and Hull ribbon
2. Determining the strength of the trend

How to identify the trend?
In general, when the price is above CPR it is considered a bullish trend. Also, when the price is above the Hull ribbon, it is considered bullish. Reverse is true for a bearish trend. Combining the traditional CPR logic with the Hull trend ribbon, we can conclude that:
1. Bullish trend = Price above CPR and above the Hull ribbon
2. Bearish trend = Price below CPR and below the Hull ribbon

If the Hull ribbon is showing a zig-zag move, the trend will be sideways. Also, the time frame of the Hull ribbon can be defined as per the need of the user.

Exhibit: Identification of a bullish trend


Exhibit: Identification of a bullish trend with a contra move (pullback)


Exhibit: Identification of a bearish trend


Exhibit: Identification of a bearish trend with a contra move (pullback)


How to determine the strength of the trend?
1. Strong trend = The dark coloured candles represent volume more than 150% of the look back period. For instance
2. Moderate trend = The bright coloured candles represent volume between 50-150%.
3. Neutral trend = The Grey coloured candles represent a weak trend where the volume is less than 50%.

Exhibit: Identification of a strong bearish trend along with the trend direction


Exhibit: Identification of a strong bullish trend using only coloured candles


All the other indicators including the SMA, VWAP, Bollinger bands, Keltner channels, etc. can be used as per the taste of the trader.

Thanks for reading! I hope you find this indicator useful.

Happy learning. Cheers!
Rajat Kumar Singh (@johntradingwick)
Community Manager (India), TradingView
Kommentare
bullsforever
Pls mention the time recommended time frame to use for positional and if we want to use with option , intraday tf , weekly tf and monthly tf
konathalaprakash
Dear Sir, Its very interesting. Could you please let us know what is the best time frame to select intraday trading. Also missing weekly,Montly CPR Values both TC and BC.
Any possibility of adding camarilla pivots and Customised RSI in this indicator. It will be very helpful to the traders who use RSI and Camarilla with RSI
Kirandeepc
Nice Work Rajat! Those saying useless Indicator, First we Should First know reason Why there was need to develop Indicator. Calculations Behind Indicator. Some Indicators like This one Should be used When there is Confluence, Not One Condition Met,Jump into Trade. Most Important You should know What type of Trader you are and What is your Edge. Please Don't Discourage Anyone. You can Ask Him Bruh! Why It's not working fine, I got these Signals, Definitely He will Provide you Solution. We are All Friends, A Community It's in our hand What kind of Community we wish to live. Thanks Rajat & Keep Good work going.
johntradingwick
@Kirandeepc, Thanks a lot for the continuous support, bro. I really appreciate it. 🙏
Karthi056
@Kirandeepc, well said
ancharlu
Thanks a lot for your efforts. I could make 100% profit on my capital in Bank Nifty options on 5.05.23 using your indicator. I also coupled the Double RSI to avoid fake signals. This worked so well. Is it possible to include Double RSI as well in your indicator.
spiritedJaguar47847
Sir you are genius awesome Indicater thanks 🙏❤️❤️❤️
Black-Hawk2024
Is it possible to set up alerts for price crosses HMA Ribbon?
deepupadubidri
Thank u very much sir! This is really helping a lot.👍 just checking is it possible to set full length CPR in day starting only instead of developing CPR...
Karthi056
Thanks a lot for your efforts and time you spent. 🙏
Mehr