RSI Supertrend: A Trend and Momentum Indicator

RSI Supertrend: A Trend and Momentum Indicator

1. Introduction

The Relative Strength Index (RSI) is a highly popular technical indicator that measures the magnitude of recent price changes to evaluate overbought or oversold conditions in a market. On the other hand, the Supertrend is a trend indicator that uses the Average True Range (ATR) to determine the direction of the trend and provide buy or sell signals.

The ‘RSI Supertrend’ combines these two powerful indicators into one, offering a robust tool for identifying trends and reversal points in the market.

2. Indicator Functionality

RSI Calculation

The RSI is calculated using the following formula:

RSI = 100 – 100 / (1 + RS)

Where RS is the average of gains in bullish periods divided by the average of losses in bearish periods. In this case, we use a 14-period RSI:

The calculated RSI is smoothed using a 14-period moving average:

Supertrend Calculation Based on RSI

The Supertrend is calculated using the ATR to determine market volatility. The process includes the following steps:

1. True Range (TR) Calculation:

2. Average True Range (ATR) Calculation:

3. Determination of Supertrend Levels (UP and DN):

4. Determination of the Trend:

3. Configuring the Indicator in ProRealTime

The ‘RSI Supertrend’ can be customized using various configurable parameters:

– relativeStrengthIndexLength: RSI period length (default, 14).
– rsiInputSource: Data source for RSI calculation.
– movingAverageLength: Length of the moving average used to smooth the RSI.
– movingAverageType: Type of moving average (7 represents a simple moving average).
– trendFactor: Trend factor used to calculate Supertrend levels.
– averageTrueRangeLength: Period length for ATR calculation.
– obline, osline, midline: Overbought, oversold, and middle lines.

4. Practical Application

The ‘RSI Supertrend’ provides clear visual signals for buy and sell operations:

– Buy Signal: When the RSI crosses the Supertrend upwards and the RSI is greater than the overbought line (obline).
– Sell Signal: When the RSI crosses the Supertrend downwards and the RSI is less than the oversold line (osline).

These crosses indicate possible trend reversal points, offering opportunities to enter and exit the market.

Advantages:

– Combines the strength of the RSI and Supertrend.
– Provides buy and sell signals based on trend and momentum.

Limitations:

– May generate false signals in sideways markets.
– Requires parameter adjustments for different assets and market conditions.

5. ProRealTime Indicator Code

6. Conclusion

The ‘RSI Supertrend’ is a valuable tool for traders looking to identify trends and reversal points in the market. By combining the RSI with the Supertrend, a more comprehensive view of market momentum and direction is obtained, which can help make more 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. Faisalx • 297 days ago #

    ChatGPT
    Hola Iván. Gracias por tu excelente trabajo.
    Te agradecería si pudieras echarle un vistazo a mi solicitud.

    https://www.prorealcode.com/topic/conversion-de-indicator-code/

    • Iván • 297 days ago #

      ok, perfecto! me pongo con ello

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
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...
Nicolas Indeed, if you are not willing to loose, you will always win. Averaging down losers can carr...
David You're always safer going Long especially with averaging down on an index as the probability...
Oskar Bergvall  I noted Davids and Nicolas remarks. Could it be possible to make an indicator for contraria...
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. 
verdi55 Is there such a thing as a free lunch ?
maceng Thanks Nicolas for this great work! I would like to understand the math behind it in order t...
Nicolas Sorry I have no time to provide assistance for python programmers. Have a good day.
Nicolas You need to have enough bars loaded on your chart for the indicator to compute completely th...
verdi55 Working with separately calculated supertrend indicators in backtests is usually somewhat pr...
Nicolas Very interesting Verdi. Would be a great addition to the library, your own modified version ...
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
danhei Hi I am tryong to figure out how trist strategy works. I am new to pro real time. Can some...
Plop61 Hello,Thank you for sharing this beautiful strategy.Is it possible to indicate the code for ...
NoName Thank you very much for this fascinating trading system. It is still proving to be extremely...
DANY I did it on demo account; it's too dangerous for mea and I can not resist psychologically  ....
demoz How can a demo account be dangerous? Did you have it run live (on a demo account for exampl...
DANY Yes, I mean that I tried on a demo account for 2 months and it had work fine, like the BackT...
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 ...
MikeGC I don't know if you have used the variables a and b to optimise the parameters for the Super...
gianpiero75 I have not optimized, I multiplied the parameters for 6 (5,8), to use them on the 4  hoursTF...
bertrandpinoy bonjour Mike j utilise TrendChaser V2.0 et quand il prend position cela ne programme pas le ...
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!
eisi If i switch between different Markets, the Backgroundcolour will appear where it should not...
datageek How can I get alerts on colour change?
NAMBO40 Hello, I would like to add a 25 period SMA moving average. It's possible?
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 ...

Top