Higher Timeframe RSI

Higher Timeframe RSI

Does exactly what it says on the tin – gives the RSI value for a desired lookback period on a higher timeframe.

Only works up to timeframes of 2 hours (3 and 4 hour timeframes do not work as first bar of the day is sometimes a different duration, e.g. 1 or 2 hours, which messes up the calculations). Make sure obviously that the current timeframe is less than the specified higher timeframe.

 

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. jebus89 • 10/23/2017 #

    Might be dump question, but can you set it on 20 minutes? or only 1 or 2 h?

    • JMat45 • 10/23/2017 #

      Yes you can – as long as both timeframes are 2 hours or less (and shorter timeframe less than higher timeframe obviously).

  2. Mirko Vaglio • 10/23/2017 #

    Interesting idea to bypass the limit of PRT about multiple timeframe, and I am just trying to plot 15 minutes Rsi on 1 minute Chart for the EURUSD.
    In the first moment, trying to convalidate the code on ProBuilder I received this message: «Define variables: highertimeframe, per, ub, cl, lb» and because I cannot understand enough the logic of the code and also some functions used in it I was uncertain how to define the variables. Looking a little bit more I could make the code partially working.
    Very obviously “ub” “cl” and “lb” stay for the bounds of the RSI, so I put them ub=70 (upper bound), cl=0 (center line) and lb=30 (lower bound).
    Also obviously “highertimeframe” stays for the higher frame: so, meaning to plot 15m RSI on the 1m chart I put highertimeframe=15:
    I was uncertain about the meaning of “per”… then, after trying some random values to plot something, I concluded it was meaning “period” and I wrote per=15 (also if, in this case, it was a not necessary variable yet existing “highertimeframe=15”)
    Anyway plotting the indicator I could obtain values changing every 15 minutes with a line looking like Rsi. Controlling the values with the normal 15 minutes chart I saw sligtly bigger values..
    So I tried per=14 (I don’t know why..because I dont understand the calculation method) and the results are about identical to the normal Rsi15 with the problem that going back they are not correct sometime on the changing of the day.
    For what I controlled manually ,here is a table for these last days setting per=14 (remember the Rsi you see below the 15 minutes candle, for example, of 10:00 is the Rsi for the opening of the next candle (signed 10:15) and you see it on the 1minute chart below the 10:16 candle)

    EURUSD 15 minutes Chart___EURUSD 1 minute Chart
    Date____Time____Rsi 15m ____RsiHigher 1m
    7 nov____10:00___14,85 ______14,85___(exact)
    8 nov____00:30___73,94_______98,28___(out of scale)
    __________07:30___33.63_______31,05___(not exact)
    __________09:45___65:36_______65,72___(slightly exact)
    9 nov____02:30___36.72_______36.72___(exact)
    __________08:15___75,75_______75,75___(exact)
    __________13:00___81,31_______81,31___(exact)
    __________15:15___40,28_______40,28___(exact)
    10 nov___01:15___65,73_______65,73___(exact)
    __________09:15___31,13_______31,13____(exact)
    __________11:00___66,32_______66,32____(exact)
    __________16:30___70,19_______70,19____(exact)

    For what I see, also if there are problems going back, anyway, working on the current day, the indicator is ok and surely it will work also with 30m or 1h Rsi on 1 minute chart setting may be “HigerTimeFrame” 30/60 and, may be, “per” 29/59… Thanks for the code.

  3. Mirko Vaglio • 10/23/2017 #

    Looking a little bit more, now I understand what had to be absolutely obvious from the first moment: the variable “per” (that I founded randomly) means period of calculation of RSI that is normaly set to 14 and has nothing to do with the timeframe. So for Rsi of 30/60m on 1m chart you have to put “HigherTimeFrame” at 30/60 but “per” is always 14, if you dont want for some reason to use non-standard Rsi on both timeframes. Re-thanks for the code.

  4. Seb • 10/23/2017 #

    nice code! I’m trying to use your method to do a higher timeframe EMA, without success yet. Is this even possible?

avatar
Register or

Likes

avatar avatar avatar avatar avatar
Related users ' posts
Luciole I aslo got this error message with EU version : "A positive integer parameter is expected wi...
Suzu Yuk So Does anyone knows how to fix the error "“A positive integer parameter is expected with HI...
Thomas I haven't solved it yet. I suspect it has to do with the data cache. The problem has never o...
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...
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...
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.
ed65 hi great indicator how can i adjust time frame for opening rge ie to first 5 min , thanks in...
Thomas The you must use the timeframe 1min and change the code from endtime = 090000 // 09h00 to ...
killerplatuze Dont work anymore with the current version?
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 :)
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...
HarryPro Hello, Firtly there appears to be a typo on line 6 "lenghkc=20" should this be "lengthkc=...
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...

Top