# 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.

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

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

• • 267 days ago #

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

2. • 253 days ago #

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

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

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

Register or

#### Likes

Related users ' posts
ALE
2 weeks ago
v10.3
6
Indicators
:-)
Hola Ale Can we have this same code from Nicolas's code in smoothed heikin Ashi? Sorry...
Ok, We can discuss in the topic "3D Candlesticks TOPIC" Write me more details
Nicolas
1 month ago
v10.3
3
Indicators
Ciao Nicolas scusa se ti scrivo qui, ma sono nuovo e nn riesco a creare un nuovo post, cio...
Scusa nn riesco.
If you smooth the signal using a "summation" function, you get a nice "crossing of 0" graph....
Despair
3 months ago
2
Indicators
Thanks a lot!
Cheers for doing Ehler's latest indicator Despair, much appreciated.
AlexF
4 months ago
0
Indicators
4 months ago
3
Strategies
Thanks Doc! Where can you find a service for Dax with a 1 point spread?
Hello. I suggest you : ProRealTime CFD, or IG. Best regards,
Hey Doctrading, I tried your code, optimising the A and V and the RSI period, see below. ...
Matriciel
4 months ago
1
Indicators
Thanks...
verdi55
4 months ago
0
Indicators
Nicolas
5 months ago
v10.3
12
Indicators
Sorry Nicolas...wasn't what I was thinking to do...I thought you couldn't received the notif...
A tweaked version which allow to use timeframe in minutes: https://www.prorealcode.com/topic...
Nicolas
5 months ago
v10.3
1
Indicators
Hallo Nicolas, ein sehr guter Indikator, vielen Dank! Leider rechnet er bei mir nicht die Pe...
Nicolas
6 months ago
v10.3
4
Indicators
Changer la base de périodes du RSI original ? Le RSI a du "retard" puisqu'il est toujours né...
merci, je voulais savoir quel paramètre il faut modifier sur votre indicateur pour le modifi...
Cet indicateur est dynamique, il n'utilise pas de période fixe
Nicolas
6 months ago
2
Screeners
Hello Nicolas, Nice screener, I appreciate the way you always try to condense at maximum th...
There's no particular reason. RSI is widely use with its default period and results seems re...
Leo
6 months ago
7
Indicators
..for some reason I can not add PRT code properly... anyway
Thanks for that Leo. Apparently there is some fault with the site that means posting code is...
Sorry again, doing my best to fix this problem..
Vinks_o_7
7 months ago
2
Indicators
Hi, first of all Happy New Year. Well, I've inserted your indicator in DAX 1h but I cann...
Hi Mao Happy New Year ! This is just an improved RSI where you plot a standard price momen...
Francesco
7 months ago
1
Screeners
Ciao Francesco. First of all thanks for the indicator and also fro the screener. I do have a...
Francesco
7 months ago
v10.3
16
Indicators
Grazie! Buona giornata
Ciao Francesco! Ti disturbo ancora per chiederti se conosci o se eventualmente pensi si poss...
P.s. ho provato a togliere le divergenze nascoste (hd) dall'indicatore, ma nonostante inseri...
Nicolas
7 months ago
10
Indicators
Tutte le impostazioni che hanno la parola "period" sono quelle dedicate ai periodi di cambio...
Le chiedo una ultima cosa, ossia se è possibile personalizzare l'indicatore con una scritta ...
Spiacente che non sia possibile, le coordinate grafiche non sono in pixel ma nel prezzo e ne...
Nicolas
8 months ago
v10.3
3
Indicators
Definitely, need to code this into an automated strategy.
dear nicolas, tyvm for your indicators and strategies, i have this following error when i ch...
Your picture is too small, but for sure the problem is about the fact you are still using v1...
9 months ago
1
Indicators
Hello, could you tell me how to use this indicator? I think the simplest things can still be...
Francesco78
9 months ago
11
Strategies
Here you go! Would like to hear your feedback :) cl = RSI[2]100-a if cl and close &...
Sorry there might be few typos, pls send the full code. Thank you
Oh, it's "cs" that's missing. I don't have the code right now but it's the exact same condit...
alex
11 months ago
1
Indicators
Im looking for a entry when EpicMA crosses over/under trigger. Then look for exits when Epic...

Top