Dr_Roboto

Cyclic Smoothed RSI with Divergence Indicator

I created a single indicator that combines 1) Cyclic Smoothed RSI and 2) the Divergence indicator (bull, bear). It is very handy when used with the MACD and crossover points.

Please refer to for info on how to use the cRSI indicator.

Info on the chart.
1) Red dotted lines = cRSI crossed back from overbought and crossover in MACD
2) Red solid lines = Bear divergence and crossover in MACD
3) Green dotted lines = cRSI crossed back from oversold and crossover in MACD
4) Green solid lines = Bull divergence and crossover in MACD
5) Black transition = cRSI crossover but NO crossover in MACD
Versionshinweise: I made some minor tweaks and enhancements. The main thing is the addition of a Weighted Moving Average (WMA). This really helps track the overall cRSI trend up and down and it can be used as a simple indicator for buying and selling. Buy when the RSI goes from oversold and crosses up through the WMA line. Sell when the RSI goes from overbought and crosses down through the WMA. Also made the cRSI line and the bands easier to see.
Versionshinweise: Added indicator points of key locations when the cRSI crosses above or below the bands or WMA. You can use these indicators as entry and exit points. They are not perfect and should be used with other indicators like the MACD and chart patterns. However, they will give you a lot of critical insight to good and bad times to buy, which on average will gain you more wins than losses.

Versionshinweise: This indicator was created by merging the cyclic smoothed RSI indicator by Lars von Theinen and the tradingview.com built in divergence indicator.

I added several extra items:
1) A Weighted Moving Average (WMA) to track the general trend of the cRSI signal.
2) Color the region between the upper and lower cRSI bands based on if the cRSI signal is above or below the WMA (green above, red below). This can help determine if the equity is in correction or rally.
3) Indicators for when the cRSI crosses from above the upper band back into the band (red dot) and crosses from below the lower band back into the band (green dot).

These extra items can help you time buy and sell. It is important that you select an appropriate time frame. 1D and 4h seem to work well.
1) Red dots are potential times to sell/short. The higher the upperband the more likely of a bigger correction (corresponds to the size of your order).
2) Green dots are potential times to buy/long. The lower the lowerband the more likely of a bigger rally (corresponds to the size of your order).
3) Crossing of the WMA is also a critical trigger for selling and buying. Crossing below the WMA (start of red region) is a sell and rising above (start of green region) is a buy.

You can adapt this code to make your own strategy. It is tricky to use just the cRSI indicators by themselves as they can create false buy/sell triggers. It works very well with strong rallies and correction,
but the smaller ones can create some mistakes. In addition, like all indicators that are based on moving averages there is a latency issue. That means they tend to trigger right after key events. Perfect timing
is not possible strictly with these indicators, but they do work very well "on average." Corrections and the counter rallies inside them are especially tricky. Correction usually happen with a pair of drops with
small counter trend rally in between. You need to be careful and not buy when the counter rally rises back above the lower band. In addition, the price can continues to fall even when the cRSI is rising. The same
is true for tops. Often times a strong rally will be followed by a falling cRSI yet the price continues to climb, sometimes 15-25% more. This is where looking at a higher time frame (1W) maybe helpful.

Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Kommentare

are divergences plotted "real time" as in on bar close... or are they delayed by x bars, thx!
Antworten
Dr_Roboto z3r0day
@z3r0day, the same as the TradingView indicator. I believe that the bear/bull divergences are delayed by the "Pivot Lookback Right." That makes it kind of useless in my opinion for real-time trading. Good for looking at pst history.

However, the coloring of the region between the upper and lower bands is in real time and so are the dots indicating crossing the upper and lower bands. That you can use for real-time trading.
Antworten
z3r0day Dr_Roboto
@Dr_Roboto, cool..there are a couple of scripts around that post real-time divergence but even they will follow a divergence for like 5 or 6 candles so cant really use them for real time signals either. thanks for the great work!
Antworten
Thanks for your improvements and pushing the developments of this crsi indicator! The divergence is a very important feature of the crsi. I like your improvement.
Antworten
This is the best indicator and very accurate for buy-entry when you track the share movement of tf2h and tf4h... Thanks for this nice indicator enhancement
Antworten
Dr_Roboto bh167azizan
@bh167azizan, your welcome. I really like the cRSI indicator, but I like to track the bull/bear flags also. I did not want 2 "RSI" indicators wasting space, so I got lucky and it was easy to merge them. It only took about an hour.
Antworten
Seems like a really cool idea. Thank you for this work. When you say, "You need to derive the dominant cycle as input parameter for the cycle length as described in chapter 4" - does this imply that this will vary by ticker?
Antworten
Dr_Roboto dhman2012
@dhman2012, good question. I don't know. the cRSI was created by someone else. I have been just using it at it default value. Playing around with it makes a large difference in its look.
Antworten
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender Über Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Angeworbene Freunde Coins Meine Support Tickets Hilfe Center Private Nachrichten Chat Abmelden