Relative Strength Index (RSI) + Realtime DivergencesRelative Strength Index (RSI) + Realtime Divergences
This version of the RSI indicator includes the following features:
- Optional divergence lines drawn directly onto the oscillator in realtime.
- Configurable alerts to notify you when divergences occur.
- Configurable lookback periods to fine tune the divergences drawn in order to suit different trading styles and timeframes.
- Background colouring option to indicate when the RSI oscillator has crossed above or below its centerline.
- Alternate timeframe feature allows you to configure the oscillator to use data from a different timeframe than the chart it is loaded on.
- Fadeout oscillator feature will fade out all but the most recent history, leaving your chart free of visual noise.
- Flip oscillator feature can be used with the Tradingview 'Flip chart' feature (Alt+i) in order to flip both the chart and the oscillator, too. This feature is to help traders manually spot divergences that may have a strong natural bias in one direction.
- Optional centerline and range bands.
- Various optional moving average types, bollinger bands etc.
This indicator adds additional features onto the standard RSI whose core calculations remain unchanged. Namely, the configurable option to automatically, quickly and clearly draw divergence lines onto the oscillator for you as they occur in realtime. It also has the addition of unique alerts, so you can be notified when divergences occur without spending all day watching the charts. Furthermore, this version of the RSI comes with configurable lookback periods, which can be configured in order to adjust the sensitivity of the divergences, in order to suit shorter or higher timeframe trading approaches.
What is the Relative Strength Index ( RSI )?
Investopedia describes the Relative Strength Index as follows:
“The relative strength index (RSI) is a momentum indicator used in technical analysis. RSI measures the speed and magnitude of a security's recent price changes to evaluate overvalued or undervalued conditions in the price of that security. The RSI is displayed as an oscillator (a line graph) on a scale of zero to 100. The indicator was developed by J. Welles Wilder Jr. and introduced in his seminal 1978 book, New Concepts in Technical Trading Systems.
The RSI can do more than point to overbought and oversold securities. It can also indicate securities that may be primed for a trend reversal or corrective pullback in price. It can signal when to buy and sell. Traditionally, an RSI reading of 70 or above indicates an overbought situation. A reading of 30 or below indicates an oversold condition.”
The RSI is also commonly used to spot divergences.
You can read more about the RSI and its calculations here
What are divergences?
Divergence is when the price of an asset is moving in the opposite direction of a technical indicator, such as an oscillator, or is moving contrary to other data. Divergence warns that the current price trend may be weakening, and in some cases may lead to the price changing direction.
There are 4 main types of divergence, which are split into 2 categories;
regular divergences and hidden divergences. Regular divergences indicate possible trend reversals, and hidden divergences indicate possible trend continuation.
Regular bullish divergence: An indication of a potential trend reversal, from the current downtrend, to an uptrend.
Regular bearish divergence: An indication of a potential trend reversal, from the current uptrend, to a downtrend.
Hidden bullish divergence: An indication of a potential uptrend continuation.
Hidden bearish divergence: An indication of a potential downtrend continuation.
How do traders use divergences in their trading?
A divergence is considered a leading indicator in technical analysis , meaning it has the ability to indicate a potential price move in the short term future.
Hidden bullish and hidden bearish divergences, which indicate a potential continuation of the current trend are sometimes considered a good place for traders to begin, since trend continuation occurs more frequently than reversals, or trend changes.
When trading regular bullish divergences and regular bearish divergences, which are indications of a trend reversal, the probability of it doing so may increase when these occur at a strong support or resistance level . A common mistake new traders make is to get into a regular divergence trade too early, assuming it will immediately reverse, but these can continue to form for some time before the trend eventually changes, by using forms of support or resistance as an added confluence, such as when price reaches a moving average, the success rate when trading these patterns may increase.
Typically, traders will manually draw lines across the swing highs and swing lows of both the price chart and the oscillator to see whether they appear to present a divergence, this indicator will draw them for you, quickly and clearly, and can notify you when they occur.
Setting alerts.
With this indicator you can set alerts to notify you when any/all of the above types of divergences occur, on any chart timeframe you choose.
Configurable pivot periods.
You can adjust the default pivot periods to suit your prefered trading style and timeframe. If you like to trade a shorter time frame, lowering the default lookback values will make the divergences drawn more sensitive to short term price action.
Disclaimer: This script includes code from the stock RSI by Tradingview as well as the Divergence for Many Indicators v4 by LonesomeTheBlue.
Relative-strength-index
Strength of Divergence Across Multiple IndicatorsOverview:
One-stop shop for all your divergence needs, including:
(1) A single metric for divergence strength across multiple indicators.
(2) Labels that make it easy to spot where the truly strong divergence is by showing the overall divergence strength value along with the number of divergent indicators. Hovering over the label shows a breakdown of each divergent indicator and its individual divergence strength value.
(3) Fully customizable, including inputs for pivot lengths, divergence types, and weights for every component of the divergence strength calculation. This allows you to quickly and easily optimize the output for any chart. Don't worry, the default settings will have you covered if you're not interested in what's going on under the hood.
The Divergence Strength Calculation:
The total divergence strength value is the sum of the divergence strengths of all indicators for which divergence was detected at a given bar. Each indicator's individual divergence strength is comprised of two basic components: (1) |ΔPrice| - the magnitude of the change in price over the divergence period (pivot-to-pivot), and (2) |ΔIndicator| - the magnitude of the change in indicator value over the divergence period.
Because different indicators' scales and volatility can vary greatly, the Δ values are expressed in terms of standard deviation to ensure that the values are meaningful and equitable across all indicators and assets/instruments/currency pairs, etc:
|ΔIndicator| = |indicator_value_1 - indicator_value_2| / 2 * StDev(indicator_series,100)
Calculation Weights:
All components of the calculation are weighted and can be modified on the Inputs page in settings (weights are simply multipliers). For example, if you think hidden divergence should carry less weight than regular divergence, you can assign it a lesser weight. Or if you think RSI divergence is worth more than OBV divergence, you can adjust their weights accordingly. List of weights:
Regular divergence weight - default = 1
Hidden divergence weight - default = 1
ΔPrice weight - default = 0.5 (multiplied by the ΔPrice component)
ΔIndicator weight - default = 1.5 (multiplied by the ΔIndicator component)
RSI weight - default = 1.1
OBV weight - default = 0.8
MACD weight - default = 0.9
STOCH weight - default = 0.9
Development for additional indicators is ongoing, as is research into the optimal weight configuration(s).
Other Inputs:
Pivot lengths - specify the number of bars before and after each pivot high/low to consider it a valid candidate for divergence.
Lookback bars and Lookback pivots - specify the number of bars or the number of pivots to look back across.
Price sources - specify separate price sources for bullish and bearish divergence
Display settings - specify how lines and labels should display, including which divergence strength values should show the largest labels. Include/exclude specific divergence types and indicators.
Please report any bugs, or let me know if you have any enhancement suggestions or requests for additional indicators.
@reees
Relative Strength
Compare the percentage change of the current symbol with the benchmark in last 5 periods.
By default the benchmark is SPY, you can change it from Indicator Settings.
Double RSI FilterI've seen several youtubers using 2 RSI's on top of one another to filter trades for their strategies. I figured I would just code it up as an all-in-one indicator for people who have the basic package. This way they have an extra slot for another indicator if they need one and also for convenience.
Longs only when RSI 1 is above RSI 2 and shorts only when opposite. The arrows show where crosses of the RSI's occur.
Let me know if there is something else like this where it would just be very convenient to have 2 indicators on one window or other such things and I'll see if I can do something for you guys in my spare time. I'm just an amateur coder, but learning as I do more of these for people.
Thank you!
Hope this helps someone! :)
Artharjan Relative StrengthHi Guys,
I have created Artharjan Relative Strength indicator which shows the comparison of a Stock (script) either with Benchmark Index or with its respective sectoral index.
If the Relative Strength value is more than Zero (Above Zero Line) then it means the Stock is outperforming the index and vise-a-versa
A moving average is also added to smooth out data series.
Traders can chose from the Benchmark/Sectoral indices as well as Moving Average Lookback period and moving average type for extra convenience.
If the Relative Strength is strong then trader can look forward to taking bullish trade and Investor can think of investing in that particular script for a long term period (Or as long as Relative Strength line does not cross below zero line)
The Default Lookback period selected is 55 (Fib number) as it covers considerable /sufficient amount of range to find out relative strength of the stock.
The Relative Strength depends on the timeframe you chose... so feel free to adjust the Lookback period from 55 to any other number depending upon your trading/investment timeframe.
Hope you guys would find this indicator useful.
Regards
Rahul Desai
@Artharjan
Screener for 40+ instrumentsAs you probably know in TradingView there is a limit of 40 instruments in one custom screener.
I created a script that will allow you to scan more symbols.
The idea of it is pretty simple. You have to add a screener a few times on your screen with a different set of symbols. Then select column width (as % of your chart width) and # of the screener right to left.
Script will plot #1 screener next to the right border. For #2 and all next tables, the script will compute the needed offset and will draw it on the left. This way it will look like one table and not a few separate indicators.
I created a script with an RSI screener, but you can create more complicated examples with it.
Off course, that's not a silver bullet solution but might work for some of you.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
Multi-Timeframe RSI GridThe relative strength index (RSI) is a momentum indicator that measures the magnitude of recent price changes to evaluate overbought or oversold conditions. The RSI is normally displayed as an oscillator separately from price and can have a reading from 0 to 100. This indicator displays the current RSI levels at up to 6 timeframes (of your choosing) in a grid. If the RSI levels reach overbought (above 70) or oversold (below 30) conditions, it changes the color to help you see that RSI has reached extreme levels. Note that in TradingView, when the chart is on a higher timeframe, the lower timeframe RSI levels don't calculate properly. If those conditions are met, this indicator will hide those values in the grid. If none of your selected values are available, it hides the table completely. There are configuration options, like:
Position the grid in any corner of the screen
Style customization (color, size)
Customize RSI length
RSI Levels, Multi-TimeframeThe relative strength index (RSI) is a momentum indicator that measures the magnitude of recent price changes to evaluate overbought or oversold conditions. RSI is normally displayed as an oscillator separately from price and can have a reading from 0 to 100. This indicator takes the RSI and plots the 30 & 70 levels onto the price chart so you can see when price is going to meet the 30 or 70 levels. The reason the 30 & 70 levels are important is because many traders (and bots) use those as signals to buy (at 30 RSI) or sell (at 70 RSI). Additionally, this indicator allows you to display not just the RSI levels of your currently viewed timeframe on the chart, but also shows the RSI levels of up to 6 different timeframes on the same chart. This allows you to quickly see if multiple RSI levels are aligning across different timelines, which is an even stronger indication that price is going to change direction when it meets those levels on the chart. There are a lot of nice configuration options, like:
Style customization (color, thickness, size)
Labels on the chart so you can tell which plots are the RSI levels
Optionally display the plot as a horizontal line if all you care about is the RSI level right now
Toggle overbought (RSI 70) or oversold (RSI 30) on/off completely
Inverse Fisher Transform ScreenerThis is a Screener for Inverse Fisher Transform on multiple oscillators
This tool is intended to aid you to visually analyse reasonable buy and sell IFT-signal thresholds across multiple tokens and different sources. It will help you speed up the tedious and manual work of trying out different IFT-settings when you're able to review the chart visually to find which values are present the most often and the location of that signal on the chart.
What does it bring to the table, why is it useful?
- Invese Fisher Transform on multiple oscillators such as RSI, MFI, CCI, Stochastic
- Combine multiple sources into one signal, select how it's calculated
- Visually review the chart for good IFT-settings
- 4 dynamic buy labels with different thresholds
- 4 dynamic sell labels with different thresholds
- Buy and sell on signal reversal
- Create your own trade alerts for automation
- Backtester compatible (plots 1 and 2 for buy and sell signals)
- A dynamic table counting amount of signals for each setting
- The labels are automatically updated when you change the values in the settings
How to use?
1. Change signal source and method
2. Change buy and sell thresholds
3. Show/hide additional labels
4. Review chart
5. Change trade settings
6. Backtest
7. Create alerts
Description
With this indicator you're able to visually review the signal strength of one or multiple oscillators processed with Inverse Fisher Transform ( IFT ), combine them and choose the method of calculation when they are combined. This produces a signal which strongly fluctuates between -1 and +1 instead of the more common 0-100 most oscillators uses. The intention is to make the decision making clearer and easier when you decide when to enter or exit a trade. This aims to help you remove the feelings from your trading.
Inverse Fisher Transform was first presented by John Ehlers in Stocks & Commodities V. 22:5 where he proposes to process RSI with the formula for hyperbolic tangent, tanh (x). This transforms the oscillator into a smoother and more compressed version with quicker oscillations.
GoldenCO Aie2 Use of GoldenCO Aie2
This market price movement trend analysis uses exponential moving average which is ema5/20/50. The purpose of using this EMA is to find out the effect of price changes that occur and the current trend of the market whether bullish or bearish.
It is suitable for short-term or long-term trading.
for short term trading, the trader uses ema5-ema20 and for long term trading the trader can use ema5-ema50 as analysis.
This indicator serves as a guide to traders in trading activities.
we hope that, by recognizing and knowing the trend of this price movement it can help traders in trading activities well and can reduce risk. May it benefit the trader.
DISCLAIMER : This is not Buy/Sell call, just sharing idea analysis for education. Trade at your own risk.
RSI PlusRSI Plus:
☑️ Show the divergences.
☑️ Shows the approximate price of an RSI level (by default it is level 55 but it can be changed for any other level).
☑️ Shows the bulls and bears zones, in green when crossing level 50 up and red when crossing down.
☑️ Circle the highest and lowest levels as possible purchases and sales.
☑️ Includes a smoothed RSI.
RSI Plus:
☑️ Muestra las divergencias.
☑️ Muestra el precio aproximado de un nivel del RSI (por defecto viene el nivel 55 pero se lo puede cambiar por cualquier otro nivel).
☑️ Muestra la zonas de toros y osos, en verde cuando cruza hacia arriba el nivel 50 y rojo cuando cruza hacia abajo.
☑️ Marca con un circulo los niveles mas alto y mas bajos como posibles compras y ventas.
☑️ Incluye un RSI suavizado.
Relative Volume Strength IndexRVSI is an alternative volume-based indicator that measures the rate of change of average OBV.
How to read a chart using it?
First signal to buy is when you see RVSI is close to green oversold levels.
Once RVSI passes above it's orange EMA, that would be the second alert of accumulation.
Be always cautious when it reaches 50 level as a random statistical correction can be expected because of "market noises".
You know it's a serious uptrend when it reaches above 75 and fluctuates there, grading behind EMA.
The best signal to sell would be a situation where you see RVSI passing below it's EMA when the whole thing is close to Red overbought level
It looks simple, but it's powerful!
I'd use RVSI in combination with price-based indicators.
XPloRR S&P500 Stock Market Crash Detection Strategy v2XPloRR S&P500 Stock Market Crash Detection Strategy v2
Long-Term Trailing-Stop strategy detecting S&P500 Stock Market Crashes/Corrections and showing Volatility as warning signal for upcoming crashes
Detecting or avoiding stock market crashes seems to be the 'Holy Grail' of strategies.
Since none of the strategies that I tested can beat the long term Buy&Hold strategy, the purpose was to detect a stock market crash on the S&P500 and step out in time to minimize losses and beat the Buy&Hold strategy. So beat the Buy&Hold strategy with around 10 trades. 100% capitalize sold trade into new trade.
With the default parameters the strategy generates 10262% profit (starting at 01/01/1962 until release date), with 10 closed trades, 100% profitable, while the Buy&Hold strategy only generates 3633% profit, so this strategy beats the Buy&Hold strategy by 2.82 times !
Also the strategy detects all major S&P500 stock market crashes and corrections since 1962 depending on the Trailing Stop Smoothness parameter, and steps out in time to cut losses and steps in again after the bottom has been reached. The 5 major crashes/corrections of 1987, 1990, 2001, 2008 and 2010 were successfully detected with the default parameters.
The script was first released on November 03 2019 and detected the Corona Crash on March 04 2020 with a Volatility crash-alert and a Sell crash-alert.
I have also created an Alerter Study Script based on the engine of this script, which generates Buy, Sell and Volatility signals.
If you are interested in this Alerter version script, please drop me a mail.
The script shows a lot of graphical information:
the Close value is shown in light-green. When the Close value is temporarily lower than the Buy value, the Close value is shown in light-red. This way it is possible to evaluate the virtual losses during the current trade.
the Trailing Stop value is shown in dark-green. When the Sell value is lower than the Buy value, the last color of the trade will be red (best viewed when zoomed)
the EMA and SMA values for both Buy and Sell signals are shown as colored graphs
the Buy signals are labeled in blue and the Sell signals are labeled in purple
the Volatility is shown below in green and red. The Alert Threshold (red) is default set to 2 (see Volatility Threshold parameter below)
How to use this Strategy?
Select the SPX (S&P500) graph and add this script to the graph.
Look in the strategy tester overview to optimize the values Percent Profitable and Net Profit (using the strategy settings icon, you can increase/decrease the parameters), then keep using these parameters for future Buy/Sell signals on the S&P500.
More trades don't necessarily generate more overall profit. It is important to detect only the major crashes and avoid closing trades on the smaller corrections. Bearing the smaller corrections generates a higher profit.
Watch out for the Volatility Alerts generated at the bottom (red). The Threshold can by changed by the Volatility Threshold parameter (default=2% ATR). In almost all crashes/corrections there is an alert ahead of the crash.
Although the signal doesn't predict the exact timing of the crash/correction, it is a clear warning signal that bearish times are ahead!
The correction in December 2018 was not a major crash but there was already a red Volatility warning alert. If the Volatility Alert repeats the next weeks/months, chances are higher that a bigger crash or correction is near. As can be seen in the graphic, the deeper the crash is, the higher and wider the red Volatility signal goes. So keep an eye on the red flag!
Here are the parameters:
Fast MA Buy: buy trigger when Fast MA Buy crosses over the Slow MA Buy value (use values between 10-20)
Slow MA Buy: buy trigger when Fast MA Buy crosses over the Slow MA Buy value (use values between 21-50)
Minimum Buy Strength: minimum upward trend value of the Fast MA Buy value (directional coefficient)(use values between 10-100)
Fast MA Sell: sell trigger when Fast MA Sell crosses under the Slow MA Sell value (use values between 10-20)
Slow MA Sell: sell trigger when Fast MA Sell crosses under the Slow MA Sell value (use values between 21-50)
Minimum Sell Strength: minimum downward trend value of the Fast MA Sell value (directional coefficient)(use values between 10-100)
Trailing Stop ATR: trailing stop % distance from the smoothed Close value (use values between 2-20)
Trailing Stop Smoothness: MA value for smoothing out the Trailing Stop close value
Buy On Start Date: force Buy on start date even without Buy signal (default: true)
Sell On End Date: force Sell on end date even without Sell signal (default: true)
Volatility EMA Period: MA value of the Volatility value (default 15)
Volatility Threshold: Threshold value to change volatility graph to red (default 2)
Volatility Graph Scaler: Scaling of the volatility graph (default 5)
Important : optimizing and using these parameters is no guarantee for future winning trades!
[STRATEGY] Jurik RSXA private strategy from the Profitable Jurik RSX preview for backtesting purposes.
RSI Divergence Smoothed with Signal Line and Power ZonesThis Indicator plots Regular and Hidden Divergences lines for an RSI smoothed by an EMA and for its Signal Line
The RSI can be set to change colour with direction or can be set as single colour
Colour Changing RSI helps when trading Multiple Timeframes as you can look for confluence in the direction of RSI
The divergence script is thanks to @RicardoSantos, I've just adjusted it to suite my indicator
Remember that divergences work best when traded with the trend or very late in a trend when going against the trend
I have also added a Colour Changing Signal Line & Hima Reddy's Power Zones so now you can also
Take full advantage of trading; signal line crosses, 50 crosses and Power Zone RSI support and resistance
Relative Strength Index Multi Time frame RSII am always checking RSI on 1hr, 4Hr and Day RSI.
Having to switch is annoying so wrote this little script to show RSI on upto 5 time frames.
The green bold line is the current time frame, and you can change the other 4 to what you prefer.
If one time frame is over sold or overbought you can change the back to indicated a buy or sell etc.
Anyway thought I would share it.
If you like it, please click the like button.
Volume/Rsi Overbought/oversoldI present you my last indicator. A volume indicator that indicates overbought and oversold based on the rsi, I chose the rsi because the most used surment, this indicator allows you to identify the overbought and oversold areas of the rsi with the colors blue (oversold) and orange (overbought ) on the volume indicator! Hoping that you are useful
Viperz RSI v1.2The color of the RSI inner bands will change from Purple to Green if RSI >70 and they will change to yellow if RSI >75. Nothing else has been changed from the standard RSI. Please understand I'm testing how publishing indicators works in Trading View. I have only done a minor adjustment to the RSI indicator, but I plan to do much more once I fully understand the publishing process. Thank you. Hope you enjoy. :)
AJCrows RSIRelative Strength Index with indicator lines at 20, 30, 50, 70 and 80 marks. Use settings to show/hide these lines, and to choose appropriate colors.
Relative Strength Index on TranquilizersSome weeks ago, I had a patient in my practice who suffered from internal stability disorders.
Certainly not a case of disordered thinking or schizophrenic behaviour, because his general sense of direction wasn’t the problem.
He just couldn’t find the right overall balance, an ailment he struggled with for years.
Straight away I could diagnose that surgery wasn’t an option, so I gave him a medicine he would clearly benefit from.
I never heard from him again…. He must be doing just fine.
Cheers, Indicat...
[RS][JR]RSI Donchian ChannelsRSI Donchian Channels
Built by Ricardo and JR
Here is a great indicator to use for strong trends. Donchian Channels react immediately to changes in the highest high and lowest low. For strong trends you want to trade when RSI is set along the upper or lower DC-RSI envelope. When the RSI releases from the DC-RSI envelope, you can take the trade off.