3 RSI

3 RSI

The Relative Strength Index (RSI) is a popular momentum indicator used in technical analysis to measure the strength of an asset’s price action. Typically, traders use RSI to identify potential buying or selling opportunities in the market. In this blog post, we’ll be discussing a unique indicator code that uses different sets of data to calculate three different RSI indicators simultaneously.

The code utilizes three data sets – high minus close[1], close minus close[1], and low minus close[1]. These sets of data are calculated using the previous day’s high, close, and low values. The calculation of these data sets is essential in generating three different RSI values.

The RSI indicator is calculated using the following formula: RSI = 100 – [100 / (1 + RS)]. RS is the average gain of up periods divided by the average loss of down periods over a specified period. The period used in the calculation can vary depending on the user’s preference.

The first RSI value is calculated using the high minus close[1] data set. This RSI indicator focuses on the strength of upward price movement. When the RSI value is above 70, it indicates that the asset is overbought and may experience a price correction in the near future. On the other hand, an RSI value below 30 indicates that the asset is oversold and may experience a price increase soon.

The second RSI value is calculated using the close minus close[1] data set. This RSI indicator focuses on the strength of the asset’s overall price movement. When the RSI value is above 50, it indicates that the asset’s price is trending upwards. Conversely, an RSI value below 50 indicates that the asset’s price is trending downwards.

The third and final RSI value is calculated using the low minus close[1] data set. This RSI indicator focuses on the strength of downward price movement. When the RSI value is above 70, it indicates that the asset is oversold, and a price correction may occur soon. On the other hand, an RSI value below 30 indicates that the asset is overbought, and a price increase may occur soon.

Using this unique RSI indicator code, traders can have a more comprehensive understanding of the strength of an asset’s price action. By simultaneously monitoring the three different RSI values, traders can identify potential buying or selling opportunities based on their individual trading strategies.

In conclusion, the RSI indicator is a valuable tool in technical analysis, and this unique indicator code that uses different sets of data to calculate three different RSI indicators simultaneously is a great way to get a comprehensive understanding of an asset’s price action. Whether you’re a beginner or an experienced trader, this code can help you make informed trading decisions.

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. Violet • 03/30/2023 #

    Nicolas, you calculate iRSI, but don’t use it. You show RSI in the returned values, which, after all, happens to be the same.

    Moreover, when studying the three RSI values, then two additional conditions stand out:
    One, if RSIHigh dives below RSI (yellow), the middle value, an oversold condition gets flagged.
    Two, if RSILow jumps above RSI, the middle value, then an overbought condition is indicated.

    • Nicolas • 03/30/2023 #

      Yes, that’s an error. RSI instruction is set by default to 14 if you don’t indicate it that’s why it looks the same. The last line should be:
      RETURN RSIHigh as “RSI High” coloured(30,144,255), iRSI as “High” coloured(“yellow”), RSILow as “RSI Low” coloured(250,128,114),overbought coloured(120, 123, 134), oversold coloured(120, 123, 134)

avatar
Register or

Likes

avatar avatar
Related users ' posts
finplus Thanks for the job. Which variables do you suggest for timeframe 1 hour? 
Maz Depends massively on your market and the volatility. I suggest using the variable optimizer ...
1Randy This a great momentum filter! I would like to see volume momentum incorporated into the indi...
Nicolas All conditions under parenthesis for the c1 to c4 conditions should be inverted. 
tomus Can you give an example of the overbought codes please? Thanks.
ams123 Frank Merci Nicholas -:)
Djo Not working on V11. The RSI doesn't appear on the chart.
Mika83 Bonjour, J'ai des soucis de lecture de syntaxe avec la variable "drawsegment" sur la versio...
seb234 Salut Mika, j'ai la version V11.1, la formule fonctionne. Mais il est préférable, dixit Nico...
bolsatonimora2 Hi, nice indicator, it´s possible to include a middle line with 50 value? ty!
gabri Hi, EMA26 approximate almost exactly the 50% line
Alain Wilder MA is exactly the 50% line
owes29 Hi is there anyway to develop this for the pro scanner on daily or hourly scans. so it woul...
Nicolas Of course, please add a query in the proscreener forum.
Bruno Carnazzi C'est dommage, cette histoire d'énergie fractale bousille complètement la précision de l'ind...
gregus bonjour a tous quelqu un pourait il recodé en prt il sagit  du dynamique zone ma, je n arri...
Nicolas Merci de faire une requête spécifique sur le forum. 
Nicolas
8 years ago
StepRSI
StepRSI
5
Indicators
Nicolas Thanks for this modification, I still do not have tested it, where did you get this idea to ...
rfsteve Trial and error from study of indicators call it coding mad science was trying to find an in...
Maxime Baudin Nice! Thanks :)
Nicolas
8 years ago
GraHal Forked code I mention above is here ... GraHal wrote: So below is the PRC Stochastic RSI v...
GraHal Try again (quite limited what you can do as Comments in the Library) https://www.prorealco...
AutoFlanders Thanks GraHal, that's what i was looking for
Dimi.A Awesome mate.
mora87 Hi David and Nicola, I'd like to share idea with you guys which is related to David's Idea. ...
Nicolas Please ask for custom coding in forums instead.
jeanphi0034 Hello, I would like to use the QQE indicator which is based on smooth RSI as far as I unders...
ilstefano Bonjour Nicolas, te serait il possible de rajouter la fast ATR manquante dans le code? Merci
Nicolas Désolé je ne comprends pas la question ?
rpreviteri Hi Nicolas, thanks a  loto for sharing your knowliedge, Wasn't the original momentum pinball...
air Thank you!  
elanoa Buonasera sig. Nicolas......sarebbe possibile far in modo che quando l'indicatore raggiunga ...
zilliq The reasons why I think it's time consuming and we loose time to try to do backests and Auto...
filiprb Hello Zilliq, You don't need a system to produce a walk forward test. You can easily create...
Philip Raphael It is incredible! Thanks for sharing, Doctrading!
s00071609 Hi, could you please suggest, what this codes gives, lowest[b](rsi[a]) -- just trying to us...
Nicolas lowest[b](rsi[a]) returns the lowest values of the RSI of "a" periods, over the last "b" per...
s00071609 Hi, what would be the code to get the price for last bullish DTOSC cross over. I am looking ...
Nicolas RSI is an oscillator made for price centering. This strategy bet on mean reverting phenomena...
air Good start. Works decently during stock runaway bull market. I have tested it over 80 year p...
TheHovisTrader Hi - the way Larry trades it does not work - discovered that over 10 years ago! BUT If you ...
Glen Marquis I wonder how this fairs on 5 or 15 mins. Maybe 21 or 25 instead of 14 .
Doctrading Hello, you can test it. It's not my best strategy... but I think someone can improve it.
Investment Account Wow great thanks ... looks good! Do I set the colour shades up from within the indicator 's...
avatar
Anonymous Thanks for your comments and yes, that is exactly how I set up the colour levels.
Vish Thanks I have added this in my watch list. Has anyone tried it yet ? Does it work on currenc...
Nicolas Aucune immobilisation du capital. Quel est le drawdown du buy & hold ? Je ne l'ai pas ca...
jctrader ok pour le codage mais le choix "indice" n'est pas le bon : moins de 5%/an pour le meilleur ...
Thomas Hi Nicloas nice one i do understand :D im trying to put in MA200 as a criteria so it only go...

Top