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
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...
Gio56 Super idée. j'ai juste un souci. j'ai pas de barre verte mais plusieurs lignes de couleurs.....
DeathMetal change line in histgram, (click on indicator name, click on tool (
Gio56 Super merci.
Bateson
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...
Stanko Ciao Crusoe, grazie per il commento: confermo che il trailing stop non funziona bene. Provo ...
taklause I was wondering, you said it works on the 1 min Chart, but you never use it in the code as t...
Stanko Ciao taklause. Utilizzando il grafico a 1 minuto e fino al grafico a 15 minuti il codice fun...
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...
Nicolas
1 year ago
3 RSI
3 RSI
2
Indicators
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...
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.
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...

Top