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 • 225 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
luxrun I have a problem that I don't understand: by changing the parameters of the CCI and RSI peri...
Iván Hi! Sorry... You have to check lines 9 to 13 and delete. //CCIper = 14 //RSIper = 14 //Ma...
luxrun grazie Ivàn!
Faisalx ChatGPT Hola Iván. Gracias por tu excelente trabajo. Te agradecería si pudieras echarle un...
Iván ok, perfecto! me pongo con ello
Iván
7 months ago
Iván Hi, Sorry, but what do you mean?
luiskohnen Hola, queria saber si el indicador repinta, porque a mi me parecio que si. Saludos y gracias...
Diamant Bonsoir, L'un d'entre vous peut-il me donner les définissions de LL-HH-LH et HL. Merci d'av...
Bernard13 (Je réécris mon commentaire -français- en français car certains mots ne correspondaient pas ...
Iván 1000 indicateurs !!! brutaux
Lean Me parece muy buen indicador, y se complementa muy bien en mi sistema, ¿podrías crear un scr...
Iván Gracias! Para el screener sólo tienes que copiar el indicador y poner como condición de búsq...
Lean Muchas gracias Iván, ya lo he podido crear.
Bateson
11 months ago
Matriciel Very nice job ! Is it possible to do the opposite because what interests me is to have the ...
YvesRobert Hi Matriciel, how can we do this, because stochastic is limited between 0 and 100 but price ...
Traderfox06 Dear zeiiermantrading, I really like your approach combining adaptive averages with MACD in...
jacquesgermain Hello IASD it's normal , when this occurs, uncheck RSI and MFI line and click then the MAC...
emiliobercial Thank you very much for sharing!
Carlose estoy de acuerdo con IASD Esta muy bien el MAD y el indicador en el precio no se ven bien...
bousalahane merci pour le partage de cet l'indicateur, j'ai rajouté un autre indicateur pour faire une s...
joaoarcher Hi, thank you for the this. Is it possible to create a screener from this indicator, so that...
ThaNoizy Yes, you cannot use CFDs on IG for Weekly strats you need to use their Index Futures, they h...
KumoNoJuzza Thanks. I did not know IG had Futures. I am always missing an info or a detail. I used to th...
joaoarcher Hi, thank you for the this. Is it possible to create a screener from this indicator, so that...
Nicolas
2 years ago
3 RSI
3 RSI
2
Indicators
Violet Nicolas, you calculate iRSI, but don't use it. You show RSI in the returned values, which, a...
Nicolas Yes, that's an error. RSI instruction is set by default to 14 if you don't indicate it that'...
DELBERT Bonjour , Nicolas , je voudrais installer cet indicateur sur ma PRT , version 10.3 , mais je...
Nicolas En effet, il faut à minima une version 11. La 10.3 est tellement ancienne maintenant.. Je pe...
DELBERT Bonjour , Nicolas , merci pour ta réponse , je fais un essai et je verrais . Salutations .
Khaled Thank you Nicolas! Looks like TDI (Trader Dynamic Index). Interesting to give Exit Signal as...
Nicolas ColorBetween is an instruction added last year: https://www.prorealcode.com/documentation/co...
robertogozzi An updated version can be found here https://www.prorealcode.com/topic/conversion-of-pine-sc...
jissey Bonjour Robertogozzi, cet indicateur est interessant mais serait-il possible de marquer la ...
robertogozzi Sure, but you should start a new topic on the Probuilder support forum. Thank you :)
AntoGH Bonjour peut-on backtester cela ? Et si vous l'avez fait pourriez vous nous donner le code.....
Nicolas désolé c'est un oubli de ma part, tu peux supprimer cette ligne, elle n'est plus utile dans ...
DELBERT Bonjour , Nicolas , merci pour ta réponse , je suis en effet avec PRT 10.3 , et j'ai bidouil...
supertiti https://zupimages.net/viewer.php?id=20/50/2e3v.jpg
volanirina Bonjour Je souhaite l'avoir sur l'indicateur MT4 si possible s'il vous plait. car je l'ai fa...
Nicolas ProRealCode est un site dédié à l'utilisation de la plateforme de trading ProRealTime: https...
Nicolas Merci d'ouvrir un sujet dans le forum des screeners en respectant les règles de publication ...
Pensera Bravo Nicolas ! Tu es en quelque sorte l’inventeur de Metascore…(oups je viens de lire jusqu...
Nicolas Dans un but d'investissement pure, et non spéculatif.
Nicolas Please open a topic in ProScreener forum with your query, I'll reply you there. Thank you.
manafull Thanks Nicolas, I post my question, along with the codes I am trying to convert from your in...
Nicolas I replied to your post here: https://www.prorealcode.com/topic/screener-for-rsi-and-linear-r...

Top