Dynamic RSI

Dynamic RSI

The Dynamic RSI indicator is a kind of exponential RSI. The overbought and oversold levels (respectively HiLine and LoLine) are calculated according to the recent highest and lowest values of the Dynamic RSI line.

The code has been converted from the Amibroker version, as per a request in the English forum section.



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. luxrun • 01/30/2019 #

    A question please: is it possible to turn the DynamicRSI into a screener that provides titles that change the color of the R line, from red to green and vice versa? I believe that the R line offers a reliable and credible indication, thanks also for this flexible indicator, Luxrun

    • Nicolas • 01/30/2019 #

      delete the lines 23 to 37 and add this one at the end in ProScreener:
      screener[r crosses over hiline or r crosses under loline]

  2. luxrun • 01/30/2019 #

    Thanks Nicolas, I did not write the request exactly; I would like to intercept the changes in the DynamicRSI line, when the color changes from red to green (rising signal) and from green to red (downward signal). The solution you indicated shows me the DynamicRSI above or below the 2 extreme bands, but in that situation the actions can stop a lot. The trend change is more interesting as a trading signal. Thanks again

    • Nicolas • 01/30/2019 #

      So it should be coded like this:
      screener[r crosses over jc or r crosses under jc]

    • souf • 01/30/2019 #

      Hi Luxrun,

      I hope everything is OK for you.

      Did you succeed turning this indicator into screener?

      If so, could you please share with me the code you applied.

      I tried to write one but failed lamentably…

      Thanks in advance.

      Have a nice day.


  3. flider • 01/30/2019 #

    Indicator in MQL4 not working?

    • Nicolas • 01/30/2019 #

      Why do you think this code is for MT4?

    • souf • 01/30/2019 #

      Bonjour Nicolas,

      J’ai tenté de créer un screener dans ProScreener, j’ai obtenu le message d’erreur ci-dessous:

      “Erreur de syntaxe:
      La variable suivante n’est pas utilisée dans le programme:hiline
      La variable suivante n’est pas utilisée dans le programme:loline”

      Voila le code que j’ai essayé d’intégrer:

      //PRC_DynamicRSI | indicator
      //Nicolas @ http://www.prorealcode.com
      //Sharing ProRealTime knowledge
      //converted from Amibroker code

      // — settings
      DZbuy = 0.1 //Buy Zone Probability
      DZsell = 0.1 //Sell Zone Probability
      Period = 14 //RSI Period
      Lb = 60 //LookBack Period
      // — end of settings

      RSILine = RSI[Period](close)
      jh = highest[lb](RSILine)
      jl = lowest[lb](RSILine)
      jc = (WeightedAverage[period](jh-jl)*0.50)+WeightedAverage[period](jl)
      Hiline = jh-jc*DZbuy
      Loline = jl+jc*DZsell

      R = ( 4 * RSILine + 3 * RSILine[1] + 2 * RSILine[2] + RSILine[3] ) / 10

      screener[r crosses over jc or r crosses under jc]

      Je vous remercie par avance pour votre précieux éclairages…

      Bonne fin de journée.


    • Nicolas • 01/30/2019 #

      Si ces variables ne sont pas utiles, il faut tout simplement les supprimer du programme.

  4. souf • 01/30/2019 #

    Bonsoir Nicolas,

    Je te remercie d’avoir pris le temps de me répondre.

    J’ai essayé de supprimer les 2 lignes du programme, mais ça m’a ensuite trouvé 2 autres valeurs non utiles… (DZbuy et DZsell…)…

    Il y a quelque chose que je fais mal et que j’ai surement mal compris…

    Je vais continuer à chercher.

    Merci encore et bonne soirée.


  5. cdc.andersson • 01/30/2019 #

    Hello, when trying to include this wonderful Dynamic RSI on my trading system i get the error “The function “PRC_DynamicRSI” called from “(my trading system)” returns 4 values but your code needs 5″. Any ideas what causes this? Regards Daniel

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
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...
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...
FernetTrader think i found a solution!
monochrome Thanks for the indicator. Very interesting!
monochrome Can you please share how you made it work? I cant seem to make it work in a strategy
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.
DIOS Bonjour Nicolas, comment coder un indicateur de rsi de Divergence? Merci pour ta réponse
Nicolas En apprenant la programmation :) Plus sérieusement, il y a quantité d'exemples dans la libra...
DonTony Bonjour Nicolas, Très bel indicateur! Bravo!
Madrosat I Have not see a fully functioning automated strategy on your site?? Really have you???
juanj Hi Madrosat, why would it be on my site? I have developed it for my personal use and also to...
Madrosat ok I understood you are using prorealcode to hack the fish
imonix Have been trying this on demo since Monday before deciding whether to go live with it. Using...
Roberto Blázquez I'm sorry, I've tried it since November 2012 and it's bad results.
woktrade Superbe !
Vonasi An updated version with a bug fix can be found here: https://www.prorealcode.com/topic/dis...
snucke hey Vonasi is it possible you can help me get this indicator to show how much a market mo...
kbrooks323 Hello would someone be willing to release a scan code for this? that would be helpful as I s...
Nicolas You can do easily this screener by using the assisted creation tool. It would take you about...
kbrooks323 I just figured it out thanks!
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...
3 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...
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 -
4 years ago
Marcot18 Alex ti sei superato
AlexF Esagerato!