RSI classical and hidden Divergences Indicator

v10.3
RSI classical and hidden Divergences Indicator

After a long work, I finally developed a simple, but useful RSI Divergences Indicator -Hey! another one?-

Yes, another one! (but I hope it is better than the default ProRealTime RSI Divergences Indicator).

This indicator finds both Direct (or Regular) and Hidden (or Inverse) RSI Divergences.

When a divergence is found, an Arrow is drawn to the chart and a text is added to the Arrow to mark the type of Divergence: “dd” = Direct Divergence; “hd” = Hidden Divergence

Indicator parameters:

  • RsiPeriod: number of bars to calculate RSI value, Default=10
  • RsiOverSold: Oversold Level, Default=30
  • RsiOverBought: OverBought Level, Default=70
  • MinBarRange: minimum distance from two consecutive RSI Highs or RSI Lows, Default=3

Comparing my indicator with ProRealTime RSI Divergence Indicator (using same parameters values), i found that entry points are exactly the same, except for new arrows added by my indicator in case of hidden divergence. That’s why ProRealTime indicator shows only regular divergences.

You can play with parameters to change sensivity.

Briefly, an RSI Divergence screener will be follow.

Merry Christmas!

Ciao!

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Genotik • 12/22/2017 #

    Grazie !

    • Francesco • 12/22/2017 #

      Prego, spero che funzioni. Ho postato (due volte) anche lo screener, ma non l’ho visto ancora pubblicato.

  2. Alai-n • 12/22/2017 #

    Grazie francesco per questo lavoro !!!

  3. Alai-n • 12/22/2017 #

    Ciao Francesco, oltre alle istruzioni grafiche (DRAWARROWUP e DOWN / DRAWTEXT) che hai inserito nel codice avrei voluto inserire DRAWSEGMENT che funziona nel tempo, purché non venga rilevata un’altra divergenza !!! Hai qualche idea su come fare questo ???

  4. Francesco • 12/22/2017 #

    Ho provato ad inserire i segmenti per evidenziare le divergenze, ma al momento non sono riuscito ad individuare correttamente i punti, per cui i segmenti stessi mi venivano disegnati nei punti e con le inclinazioni sbagliate. Cmq, per disegnarli devi individuare i punti (x1, y1) e (x2, y2) che sono le coordinate dei due punti estremi del segmento. x1 dovrebbe essere la candela (il barindex) del minimo (o massimo) più vecchio e y1 il relativo valore di RSI. Allo stesso modo, x2 è la candela del secondo minimo (o massimo) più recente e y2 il relativo valore di RSI.
    In effetti i rispettivi valori di RSI (cioè y1 e y2) possono essere letti dalle variabili RSIMax1 e RSIMax2 (nel caso dei massimi); RSIMIn1 RSIMin2 nela caso dei minimi. x1 e x2 andrebbero letti dalla variabile “I” che rappresenta il barindex man mano che il ciclo for –> next viene scorso. Ci ho provato, ma le riche mi venivano disegnate tutte storte. Ci devo lavorare.

  5. LuisMi • 12/22/2017 #

    Hello merci pour l’indicateur
    j’ai un message d’erreur
    Veuillez définir la variable suivante : rsipériod
    Veuillez définir la variable suivante :rsioverbought
    Veuillez définir la variable suivante :rsioversold
    Veuillez définir la variable suivante : minbarrange
    quel sont ces données et ou dois je les mettre?

    merci par avance

  6. LuisMi • 12/22/2017 #

    J’ai trouvé pour rajouter les variables…
    thanx for indicator

  7. Inertia • 12/22/2017 #

    Very nice Franceso. Like it.
    Q: to turn your indicator into a strategy, shall I just replace lines Drawarrows and draw text with “Buy 1 contract at market” ?
    Sorry still learning 🙁 cause I’ve tried of course and it doesn’t work…Do not laught 😉

  8. Francesco • 12/22/2017 #

    @Inertia: yes, you have to replace Drawarrow and Drawtext with Buy or Sell orders.

  9. brendab180 • 12/22/2017 #

    I am new to prorealtime and when I add this is wants to put it in a lower frame how do I get it to show up on my chart frame. Thanks for your help

    • Francesco • 12/22/2017 #

      1- Download attached file rsi-divergences-2.itf

      2- Here is how to import indicator into your platform:
      https://www.prorealcode.com/import-export-prorealtime-code-platform/

      3- Here is how to add indicator to your chart
      https://www.prorealtime.com/en/help-manual/technical-analysis-indicators
      Here is how to show it on your char

  10. avatar
    fabioerliam • 12/22/2017 #

    Ciao Francesco!
    Grazie per l’indicatore che da tanto stavo cercando inutilmente di provare a creare! Ho un paio di domande da farti…
    L’ATR che hai inserito all’inizio serve a? 🙂 non credo abbia a che fare con lo strumento…penso che serva a disegnare qualcosa sul grafico…esatto?
    Cosa intendi con shiftext?
    Valore 3? Sono il numero di barre che considera per verificare se c’è o no la divergenza?
    Pensavo che quell’istruzione fosse data dal minbarrange……
    Confusion….;(
    Mi dai una mano?:)
    Grazie mille di tutto!!!

    • Francesco • 12/22/2017 #

      ShiftText serve semplicemente a far sì che il testo e la freccia non si sovrapoongano. Come avevi capito da solo, l’ATR serve solo a calcolare l’ordinata del punto sul quale piazzare la freccia sul grafico.

  11. avatar
    fabioerliam • 12/22/2017 #

    Grazie! Buona giornata

  12. avatar
    fabioerliam • 12/22/2017 #

    Ciao Francesco! Ti disturbo ancora per chiederti se conosci o se eventualmente pensi si possa generare un comando di buy o sell all’incrocio di 2 MM, ma dopo che si verifichi una divergenza sul tuo indicatore rsi…magari se ci fosse la possibilità anche di stabilire dopo quante barre dalla divergenza il segnale possa definirsi valido…per esempio mi scatta la divergenza e se entro max 5 barre si incrociano le mm ok…se no non prendere l’ordine….la vedo dura:)
    Grazie caro

  13. avatar
    fabioerliam • 12/22/2017 #

    P.s. ho provato a togliere le divergenze nascoste (hd) dall’indicatore, ma nonostante inserisca gli stessi parametri, non mi da gli stessi segnali che mi da invece l’indicatore di divergenze rsi quello standard della piattaforma…

  14. remembers • 12/22/2017 #

    Salve ho notato che questo indicatore non mi funziona importandolo correttamente. Idee?

  15. olpey • 12/22/2017 #

    Hello Francesco, Is there any parameters that you recommend for lower or higher TF please
    Thank You Grazie Mile

  16. Bard • 12/22/2017 #

    Hi,
    When I download this it says RSI Divergences 1 itf, not 2?
    There are no Return values and it’a a blank indicator?
    Any ideas anyone?

  17. robdav • 12/22/2017 #

    Hi Francesco

    I appreciate you uploaded this a long time ago but it is a useful indicator if you can’t spot the divergences manually. Interestingly I’ve compared it on IG Index spreadbet chart data and ProRealTime real market data and it highlights more interesting divergences on the real data which I guess is not a surprise. I’ve uploaded an image that compares a 5 min chart and you can see the differences. Thought you or someone else might be interested.

    Cheers

    Rob

  18. robdav • 12/22/2017 #

    https://drive.google.com/file/d/1-AQ4AS7LGV6hDJGUmKELNkHb_HZwuJ1_/view?usp=sharing

  19. robdav • 12/22/2017 #

    Try this link, it actually works.

    https://drive.google.com/file/d/1-EZBYlTi8qWOYT4_ZxgTlE0aUcnfKF6t/view?usp=sharing

  20. Adil • 12/22/2017 #

    How to install in META 4 ?

    • Nicolas • 12/22/2017 #

      Our website is about programming for ProRealTime trading platform and not about Metatrader4!
      https://trading.prorealtime.com/en/

  21. Denis • 12/22/2017 #

    Hello Francesco,
    I have the same problem as Bard, a blank indicator without any return value.
    Coul you help me please ?
    Many thanks

  22. shmilg • 12/22/2017 #

    Nice

  23. llsegard • 12/22/2017 #

    bonjour,

    merci pour cet indicateur très utile –
    Pouvez expliquer pourquoi l’indicateur apparaît dessous/dessus le chandelier lorsque la divergence est détectée sur les ut intraday alors qu’il apparaît le lendemain en ut journalière.

    j’ai testé les différents paramètres et je n’arrive pas à résoudre ce problème.

    merci pour vos retours.

    Ludovic

  24. sisco771 • 12/22/2017 #

    Bonjour.
    je viens de telecharger cet indicateur .Malheureusement il ne fonctionne pas ou plus !?
    J’ai essayer deux fois sans succès . il s’affiche correctement mais aucune courbe ne s’affiche !!
    Quelqu’un aurait-il rencontrer le même problème que moi?.
    merci d’avance pour vos retours.

  25. Geoffrey Toplis • 12/22/2017 #

    Hi Francesco,

    Great Indicator and thanks for sharing.

    How exactly does the MinRangeBar setting work? It sounds self explanatory but if i change from min 5 to min 3 some signals disappear – I would’ve thought that more would appear with the min bar range down. Is it based on the price or RSI?

    Regards,
    Geoff

  26. SpreadBetMH • 12/22/2017 #

    Hi there,
    I have V11.1.
    I get the Indicator but no Arrows on the price.

    Kind Regards
    Michael

  27. Alai-n • 12/22/2017 #

    Ciao Francesco, sei ancora in giro?

  28. Metodi97 • 36 days ago #

    This indicator is great but can someone create strategy based on the same indicator it will be great. Thank you in advance and have a good and profitable week 🙂

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+21 more likes

Related users ' posts
leoulve Hello, I uploaded correctly the screener and it is not selecting any. Is it normal? cheers
Oliviertrader2020 Hello, where do you find the ZeroLagMACDWeek indicator? You only posted the mtf-macd-diverge...
MJZTrader Good morning! I was trying to tweek the code in the way as to set it for intraday (1 Min to ...
bala Hi Nicolas, I have been extensively researching for lot of answers here. I found that you...
Nicolas Don't apply it on price, use the main "indicator and trading system" button found on the top...
Bogdan35 Hello, Is there one for MT4?
Nicolas
6 years ago
Kosuda76 Thanks for your reply! But I do not really understand what the opposite of them the values ​...
AdriTrade Good job Louis!! How could do this for the Williams indicator? Thank you very much.
imorandin Hi!, Nice code. I'm tryng to port it to another language, but I don't understand this part:...
luxrun Thanks, bolsatrilera, for a very good and solid screener!
luxrun sorry... indicator!
Lily Rios Gracias por el indicador, tengo una pregunta necesito programar un screener de valores que e...
Bebbo Grazie del prezioso contributo Nicolas, scusa la mia inesperienza, sono alle prime armi e s...
Nicolas To avoid recalculation, you should use the one from this post.
Bebbo Ok Grazie Nicolas.
bolsatrilera
6 years ago
jissey Bonjour Bolsatrilera, je trouve le cm rsi interessant, merci de l'avoir mis à disposition ! ...
bolsatrilera bonjour jissey, je n'ai aucune information sur ce que tu dis, je suis désolé.
ALE Hi the color is given by a numerical value derived from the oscillator in use. If you comp...
efahmy Thanks mate
Jo-01-R Hello, it is possible to have this indicator but instead of colors rather have numbers rangi...
GUCCI ONE Bonjour, Nicolas. Pourriez-vous m'aider à transformer cet indicateur en screener, svp ? Merci
Nicolas disponible ici: https://www.prorealcode.com/topic/divergences-screener/
julien1978 hello to all, i recently discovered this indicator. would it be possible to add the detectio...
Nicolas
6 years ago
enricot Scusa nn riesco.
SoloContado If you smooth the signal using a "summation" function, you get a nice "crossing of 0" graph....
ShaunG Greatly appreciated Nicolas!
Etienne Hi, thanks for proving this code. I would like to contribute by adding a computation speed...
Etienne //Compute Super Smoother coefficients once if barindex = 1 then a1 = exp( -1.414 * 3.14159...
Nicolas Thanks a lot!
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...
Matriciel
6 years ago
Alai-n Thanks...
Bard Thanks for sharing this Verdi55. More instructions from Larry Williams website (and a fea...
GenesisEX Thank you all for your contributions this is a great submission. Thanks for your inputs.
tino Bonjour nicolas. Je ne parviens pas à recopier le screener de l'indicateur. Auriez vous la g...
Nicolas Quel screener svp? C'est dans un des sujets du forum? Merci de fournir le lien.

Top