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

  6. Rafyone • 95 days ago #

    Bonjour Nicolas et bonne année lol
    J’ai une erreur qui apparait concernant drawbarchart une des expressions suivantes serait plusa pproprié ( sans proposition )
    Merci de ton aide
    Je commence juste à m’interressé à la programmation sur Prorealtime

    • Nicolas • 93 days ago #

      Je pense que tu n’utilises pas le bon éditeur de code, cette instruction est compatible uniquement dans la création d’indicateur (pas dans l’éditeur de codes pour les screeners ou pour les stratégies de trading automatique).

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Stenozar Hi Ivan, can you translate from tradingviwe the EMA TREND METER INDICATOR? It couid be inte...
Iván Hi Yes I can. Please, create a new topic for that I will translate it.
Stenozar Hi Ivan, I've created a new topic about the indicator: https://www.prorealcode.com/topic/ema...
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
5 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...
KumoNoJuzza Hi Guys. This looks very interesting but don't overnight fees kill the profit when trading o...
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...
1 year ago
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...
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.
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...
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.