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?

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

  1. luxrun • 258 days ago #

    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 • 257 days ago #

      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 • 257 days ago #

    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 • 257 days ago #

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

    • souf • 234 days ago #

      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 • 245 days ago #

    Indicator in MQL4 not working?

    • Nicolas • 245 days ago #

      Why do you think this code is for MT4?

    • souf • 241 days ago #

      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 • 240 days ago #

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

  4. souf • 236 days ago #

    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.


Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Sapo Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
ggolfet I tried to use it (with prorealtime version 11 - end of day version). I receive an error mes...
Nicolas Try to reduce the displayed units of the chart. MaxScale should always be superior to Start...
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
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 months ago
Marcot18 Alex ti sei superato
AlexF Esagerato!
jobswaps Sube como trazar lineas de tendencias a tantas barras
Juanjo Hola, Buscando un sistema valido para operar el squeeze, he reprogramado el indicador para ...
mauro1966 BRAVO....
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 Merci de formuler la demande dans un nouveau sujet dans le forum approprié.
Hugues Bontour Ok ;-) Normalement c'est au bon endroit. Merci à toi
Juanjo Hola Muchas Gracias por el indicador, ...queria preguntar si se podria añadir la visualiza...
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!
LancerX Please indicate the trade stat to show ave gain against average lost..
Jan Wind Thanks for sharing the strategy !. Did you do an Out of Sample run when testing on the 100k...
jmf125 I don't know if anyone is following this thread anymore. Anyway I will post my comment. Aft...
Gaby333 super this what I was looking for from Monday I will put this in real time to see what can d...
PastaPesto Hi Gubben, It would be interesting to know what changes you have done and also your backtes...
Gubben @PastaPesto, for GBP USD mainly inspired by Paul it was 2% stoploss and 45 take profit, also...
Nicolas Use the CALL function: https://www.prorealcode.com/documentation/call/ or use the 'fx' butto...
Vicari0us Perfect thanks! I got it
Bogdan35 Hello, I there one for a MT4 File? Thanks!
Nicolas Alpha transparency from 0 to 255.
ehtsham Hi, Sir can you tell me how to put this code in indicator plz
Jan Wind Ehtsham, all you need to do is change the code in line 18 and line 20 (see the code above...
myhlo Super Nicolas !! Cet indicateur offre une nouvelle lecture du Rsi ! Ces bandes up & Dawn...
luxrun Good evening Nicholas, I can not see the colors on the line of the moving average, but only ...
Nicolas Yes, you must choose the oscillator that will color the moving average. Example: ONCE UseC...
Marcos Alvarez Dominguez Hello Nicolas, is it possible to stablish a bullish screener for this indicator when the cen...
Nicolas Please open a topic in the screener section to ask for this specific query.
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?
Louis Winthorp III Hi Kosuda76, have you downloaded the rsi_revengineering.itf file? Then you can set any value...
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.