RSI Swing Indicator

RSI Swing Indicator


The RSI Swing Indicator is an advanced analytical tool that utilizes the popular and one of my favorite indicators, the Relative Strength Index (RSI), to offer a more dynamic and versatile way to identify overbought and oversold conditions in the market. This indicator stands out for its ability to adapt to different market conditions and its utility across multiple time frames, making it a valuable choice for both intraday traders and those who prefer longer-term operations.

The RSI Swing Indicator goes beyond simply measuring price dynamics, allowing users to set personalized overbought and oversold thresholds, and offering a clear visualization of price channels and pivot points that are critical for trading decision-making. Its intuitive design and the implementation of visual signals make it easier to identify optimal moments to enter or exit the market, thus improving trading strategies based on technical indicators.

With its focus on customization and adaptability, the RSI Swing Indicator presents itself as an essential tool for traders looking to maximize their operational efficiency and continually improve their market analysis methods.

Technical Description

The RSI Swing Indicator is based on several input variables that traders can customize according to their specific trading needs. These variables are fundamental to adjusting the indicator to different assets and time frames.

Input Variables:

  • rsiLength: Defines the RSI period. A lower value speeds up the indicator, making it more sensitive to market movements, while a higher value smooths it out, providing fewer signals but potentially more significant ones.
  • rsiOverbought: Sets the overbought threshold. Traditionally set at 70, but users can adjust it to increase or decrease the frequency of overbought signals.
  • rsiOversold: Sets the oversold threshold. The standard value is 30, though adjusting it can help capture signals in less volatile or more erratic markets.

Calculation of RSI Value:

The RSI value is calculated using the standard RSI formula, which compares the magnitude of recent gains to recent losses to measure the speed and change conditions of price movements:

Where rsiSource can be any price series, such as close, open, high, or low prices, as defined by the user.

States of Overbought and Oversold:

  • isOverbought: A Boolean variable that becomes true when the rsiValue is equal to or exceeds the overbought threshold (rsiOverbought).
  • isOversold: A Boolean variable that becomes true when the rsiValue is equal to or below the oversold threshold (rsiOversold).

These conditions are crucial for identifying potential entry or exit points, based on the premise that the price could reverse after reaching these extreme zones.

Functionality of Channels and Pivot Points

Channels and pivot points are calculated based on whether the price is in an overbought or oversold state. The indicator plots these channels and points using codes that dynamically adjust their length and position based on market conditions and user inputs. This methodology allows traders to visualize support and resistance levels adjusted to the current market behavior, which is especially useful in volatile or trending markets.

The implementation of these channels and pivot points helps traders better visualize the market structure and make informed decisions based on clear and adaptive technical levels.

Practical Implementation

Implementing the RSI Swing Indicator on the ProRealTime platform is a process that involves properly adjusting the indicator’s settings to align with trading objectives and market characteristics. Here I provide a step-by-step guide on how to configure and use this indicator in your operations.

Indicator Setup:

  • Enter the Code: Copy and paste the code of the RSI Swing Indicator into the programming area of the indicator.
  • Adjust Parameters: Configure the parameters rsiLength, rsiOverbought, and rsiOversold according to your needs. This may vary depending on the asset and the time frame you are using.
  • If you prefer, you can download the code in .itf format which includes the variables already created so that you can modify them from the indicator configuration window.

Signal Interpretation:

  • Overbought and Oversold Signals: Observe the areas where the RSI crosses the defined thresholds for overbought and oversold. These are potential opportunities to consider entering or exiting positions, expecting a possible price reversal.
  • Channels and Pivots: Pay attention to how the high and low channels form and where pivot points appear. A low pivot point followed by a higher one may indicate an emerging bullish trend, while a high pivot point followed by a lower one could suggest a bearish trend.

Practical Examples:

  • Range Trading: Use the indicator to identify bounces within a range established by the overbought and oversold pivots.
  • Trends: During trends, pivot points can help identify retracements or corrections within a larger trend.

This practical approach will allow you not only to follow the standard conditions of the RSI but also to leverage a deeper and adaptive market analysis with the help of channels and pivot points.


Below is the complete code of the RSI Swing Indicator, which includes the logic to calculate and visualize the states of overbought and oversold, as well as the channels and pivot points:

This code can be adapted or modified according to the specific needs of the user.


The RSI Swing Indicator represents a robust and adaptable technical analysis tool, capable of providing valuable insights into market dynamics. Through its clear visual signals and precise identification of overbought and oversold zones, this indicator facilitates more informed and strategically founded trading decisions.

We encourage you to experiment with this indicator, adjusting its parameters and applying it to different markets to see how it can improve your trading. Customization and continuous practice are key to maximizing the capabilities of any analytical tool in trading.

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

    Est ce normal que les droites se démultiplient en plusieurs droites
    quelle difference y a til entre HL et LL svp
    ci joint une copie d’ecran pour le dedoublement des droites


  2. kats • 81 days ago #

    j ai fait une copie d’ecran mais je ne sais pas comment l’envoyer sur le site

  3. luiskohnen • 69 days ago #

    This indicator re-paint?

    • Iván • 68 days ago #

      Sorry, but what do you mean?

  4. luiskohnen • 30 days ago #

    Hola, queria saber si el indicador repinta, porque a mi me parecio que si. Saludos y gracias por todos tus excelentes aportes.

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
luxrun I have a problem that I don't understand: by changing the parameters of the CCI and RSI peri...
Iván Hi! Sorry... You have to check lines 9 to 13 and delete. //CCIper = 14 //RSIper = 14 //Ma...
luxrun grazie Ivàn!
Faisalx ChatGPT Hola Iván. Gracias por tu excelente trabajo. Te agradecería si pudieras echarle un...
Iván ok, perfecto! me pongo con ello
Razz Hello, thank you for your indicator. Can you please tell me how I can change the text size,...
Iván Hi! you have all information about it here (
Miro Mis felicitaciones por este indicador. Funciona muy bien en el corto plazo. Gracias gracias ...
Regisnew Hello Ivan, thank you for your good work, is it possible to create a sceener to find actions...
Iván Hi! Yes it's possible. I will add this to my list of tasks to do :)
Regisnew finaly the screener could be something like this for green blocks but it probably could be b...
MrMagic This is amazing work. Well done, Ivan!
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Lean Me parece muy buen indicador, y se complementa muy bien en mi sistema, ¿podrías crear un scr...
Iván Gracias! Para el screener sólo tienes que copiar el indicador y poner como condición de búsq...
Lean Muchas gracias Iván, ya lo he podido crear.
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
ar Bonjour Ivan et merci pour ton partage, Est-il possible d'avoir ce code en ITF
8 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...
bousalahane merci pour le partage de cet l'indicateur, j'ai rajouté un autre indicateur pour faire une s...
joaoarcher Hi, thank you for the this. Is it possible to create a screener from this indicator, so that...
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...
joaoarcher Hi, thank you for the this. Is it possible to create a screener from this indicator, so that...
1 year ago
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:
YvesRobert Hi smp, how should I configure this indicator because everything is at zero -> High, Clos...
smp Hi, this is an end of day pivots indicator, so you need to find the end of day pivot info; t...
YvesRobert Thank you smp.
smp I also have an End Of Day (EOD) cash pivot indicator for use on cash markets; this indicator...