Stochastic RSI

Stochastic RSI

The stochastic RSI oscillator, applies RSI values instead of price into the stochastic formula.

Stochastic RSI = ((Today’s RSI – Lowest RSI Low in %K Periods) / (Highest RSI High in %K Periods – Lowest RSI Low in %K Periods)) * 100

Stochastic RSI measures the value of RSI in relation to its High and Low range over the required period:
when a regular RSI reaches a a new Low for the period, Stochastic RSI will be at 0. When RSI records a new high for the period, Stochastic RSI will be at 100.

This indicator was made by request on forum.


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. verdi55 • 12/06/2016 #

    Hello Nicolas,
    in what way does this indicator compare to the Stochastic RSI that is built-in into the PRT platform ? When I display the built-in indicator with a period of 10 units, I get a totally different picture. Do you know what the reason is ?

    • Nicolas • 12/06/2016 #

      I don’t know about the formula of the one built-in into the platform. This one has been converted from the tradingview platform as a request on forum, and it is totally similar to the original indicator.

  2. verdi55 • 12/06/2016 #

    I found the reason. The indicator built into the PRT platform displays only the StochRSI variable in your code, not the averages K and D. So I think, StochRSI is kind of a fast stochastic indicator, whereas the smoothed K% and D% in your code are the slow stochastic variety. Would you agree ? 

    • Nicolas • 12/06/2016 #

      Well, in this indi you can choose the RSI period, the period of the stochastic calculation of the RSI and the 2 smoothing periods K and D. 

  3. zakootajin • 12/06/2016 #

    Hi Nicolas,
    I am working on building a StochRSI indicator. My RSI and StochRSI values are correct but I am having an issue in matching the %K values with a trading platform. Could you tell me the formula for calculating the %K?

    • Nicolas • 12/06/2016 #

      The formula is the same as the above code. The K% is just the percentage of prive movement over a dynamic scale made by recent (periods) highest high and lowest low.

  4. AutoFlanders • 253 days ago #

    Thanks GraHal, that’s what i was looking for

Register or


avatar avatar avatar avatar
Related users ' posts
2 days ago
Souhail Sam I need help to understand this. When to buy ? When to sell ? How this indicator must look ...
1 month ago
fireleg79 Bonsoir Nicolas. Merci pour tout ton travail. Quand tu auras le temps pourras-tu jeter un oe...
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
michaelben Bonjour Nicolas . Je cherche une strategie pour faire du trading automatisé. J'ai essaye ave...
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 -
8 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....
JackD I am getting a Syntex error when entering the code
Nicolas En effet merci, erreur corrigée, la variable Risk affecte désormais comme il se doit les cal...
nader003 How can we get this indicator on MT4
Nicolas You can ask for private custom coding to our programming services: https://www.prorealcode.c...
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 Mauvais copier/coller? Veuillez télécharger le fichier .itf et l'importer dans la plateforme...
Zigo Magnifique, j'ai remplacer le RSI (70 et 30) par CCI avec les valeur+100 et -100 pour les va...
Zigo Ik heb hetzelfde gedaan met de SMI met OB =40 en OS = -40. De codes voor beide CCI en SMI zi...
Vinks_o_7 Great, thanks a lot Nicolas !
Teddy Coronak Top Nicolas ! Merci
Andyswede Thank's! Great indicator:)
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!
Nicolas Si ces variables ne sont pas utiles, il faut tout simplement les supprimer du programme.
souf Bonsoir Nicolas, Je te remercie d'avoir pris le temps de me répondre. J'ai essayé de s...
souf Hi Luxrun, I hope everything is OK for you. Did you succeed turning this indicator int...
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...
dearno //eurusd STOCH RSI SMA Lose DEFPARAM CumulateOrders = true// tradestart = time > 090000...
dearno i have test it from 22-okt-2015 to 24-jan-2020. look out for the MAE ferry high up to -$5249...
snucke dearno it hasnt made any money from sep 2018 though
Jo han Thanks for the explanation! Tried to change ModeMA (4 rows at the bottom) with WeightedAver...
Nicolas Please open a new topic with the code and an explanation, you have messed up the initial cod...
Maik2404 es sind leider nur long Positionen und keine Short zu erkennen.
Maik2404 Vytautas: es bleibt aber nur bei long Auslösungen
ullle73 this one is not a winner, have backtested it on almost all pairs, does not have an edge