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 • 4 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
Vinks_o_7 Vonasi you're a beast !!! ;-)))
pableitor Amazing indicator , you are pushing PRT to the limit! But looking at the scatter its not c...
Zigo
4 years ago
fifi743 Good morning, there is no mistake about the shorts c11=SMI[14,3,5](close)>-40
Zigo has to be c11=SMI[14,3,5] < -40 (indeed)
xar3 Thank you ;-) Zigo
Sapo Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
mitsu21 Hi, it looks nice. I'll try it tomorrow thank you for your share kind regards bruno
kj1988 Thank you Vonasi for sharing this indicator. Very useful as a comfirmation to the price act...
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
Hasardeur Hallo Nicolas, i tried to code the multi period heat map in combination with the Ehler’s ...
Nicolas Please open a new topic with the code in forum.
Marie-Eve Vergoz lorsque je copie les codes, le système me signale des erreurs à la ligne 12 et suivantes
Marie-Eve Vergoz sorry - tout est ok -
AlgoAlex
5 years ago
Marcot18 Alex ti sei superato
AlexF Esagerato!
jobswaps Sube como trazar lineas de tendencias a tantas barras
Frankiesc interesting indicator !! Thanks for sharing!!!
robertogozzi Thank you :)
phanz Hi ... what are the conditions for buy signal using this indicator? Tks
JJ Tec Hola Las condiciones de entrada / salida vienen en el libro de J. Carter Mastering the trad...
Pixeldd Ich bekomme beim einfügen des Indikators einen Fehler angezeigt. Was bitte muss ich genau än...
sir_i Bonjour à tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Nicolas Il faut simplement l'appliquer sur le prix.
sir_i Merci pour la réponse, je ne suis pas familier avec l'application de cette procédure simple,...
Nicolas Il s'agit d'un indicateur compatible avec PRT v11 uniquement. Pour éviter les erreurs de cop...
Sébi Intéressant. Merci pour ce partage Nicolas. L'indicateur ne considère pas les divergences ...
Nicolas ok, pour les divergences chacun voit midi à sa porte je dirai :) Vu qu'il n'y a pas de formu...
mcha merci bien et félicitations pour la réactivité avec laquelle il a été mis dans la bibliothèq...
soulintact Great indicator Nicolas, thanks!
cdc.andersson Hello, when trying to include this wonderful Dynamic RSI on my trading system i get the erro...
Rafyone Bonjour Nicolas et bonne année lol J'ai une erreur qui apparait concernant drawbarchart une...
Nicolas Je pense que tu n'utilises pas le bon éditeur de code, cette instruction est compatible uniq...
Exalaxe Hey, i just noticed you optimized this strategy. Could i see your new version, please?
Andrea.1981 sorry i add my code but it not enter why i dont know
Andrea.1981 this is code simply stop , and you can see another version for stop / Codice principale...
AntoGH how did you backtest it ?
PastaPesto @AntoGH , I dont know if you are asking me, but my backtest was made in an IS of 4 years bet...
Ridder @PastaPesto Do you still running this and how is the results? Thanks
dau710 Are the Bulls Blue & the Bears Red?
dau710 Many thanks :)
myhlo Super Nicolas !! Cet indicateur offre une nouvelle lecture du Rsi ! Ces bandes up & Dawn...
okiki please how can i acess the indicator i like it and want it please am new here
Nicolas download the itf file above and import it into your prorealtime platform: https://www.prorea...
XXXXVII Excellent indicateur ! Déterminer une tendance est devenu un jeu d'enfants ! Félicitation......
gregoire bonjour nicolas j ai cherché partout sur le net et impossible de trouvé ce que je recherch...
Nicolas Merci de poster une demande dans le forum des indicateurs, ainsi on pourra le coder dans ce ...
berga Hi, thank you very much for this very useful screener. I would like to get another very clos...
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...
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?

Top