INVITE-ONLY SCRIPT

RSI Ribbon

The Relative Strength Index (RSI) is a popular indicator used to assess the momentum of an asset. It measures the speed and magnitude of price changes to determine whether an asset is overbought or oversold.

Description
— The RSI Ribbon script is based on the traditional RSI indicator and can be used to assess the momentum of any asset.
— Traditional RSI is very prone to noises due to smaller price spikes. Additionally, the traditional RSI line has a constant width and does not provide any visual edge. This is where this script comes into the picture.
— The sole purpose of this script is to smoothen the data various times in order to reduce the noise in the source data as well as other calculated data and then plot RSI as a ribbon.
— The Ribbon RSI is presented using a colour-filled ribbon representation, which provides better visualization of the RSI. This feature makes it easier to assess the real signal, even with a good amount of noise left in the data.
— The width of the ribbon is indicative of the strength of the momentum. This means that the width of the trend is directly proportional to the strength of the momentum. Stronger the momentum, the more the width of the ribbon (and vice-versa).

Calculations
— The underlying source data for all the different RSI periods is smoothened using EMA or SMA.
— The smoothening method for the source data can either be EMA or SMA, depending on the trading style of the user.
— An EMA smoothening for the source data provides faster signals with more noise whereas the SMA smoothening will provide slower signals with less noise.
— This smoothened data is then used for the calculation of different RSIs.
— The derived RSI values are again smoothened using the EMA or SMA.
— The zone between RSI 45-55 is colour filled by default and acts as an important reference for the trend.
— A volume-weighted moving average and an additional EMA (which can also be smoothened) are used to determine the trend based on specific ratio value.
— Once we combine and plot all the RSI of different periods, along with trend conditions, we are able to plot a coloured ribbon which is less prone to noise and more visually appealing as compared to the traditional line plot.

Settings
— The RSI periods can be adjusted as per the preference of the user. The default values are set to 9, 14, and 20.
— By default, the source data smoothening length is set to 3 and the smoothening method is set to EMA. These values can be changed as per the preference of the user.
— The default smoothening length for RSI is set to 2 and the smoothening method is set to EMA.
— The value of the RSI-based EMA is set to 50.
— Users can toggle on/off the RSI lines, EMA, and all the levels as well as all the smoothening options based on their preference.
— The script also allows users to customize all values and colours to match their preferences.

How to use the script?
— This indicator can be used just like the traditional RSI indicator.
— It can also be used to spot divergences.
— The width of the RSI Ribbon is a great tool to assess the strength of the momentum.
— If the momentum is strong, the ribbon width will be more.
— If the momentum is weak, the ribbon width will be less.
— The increasing or decreasing widths of the ribbon can also be used to assess how the momentum is shifting with the trend.

Examples

快照

快照

快照

快照

快照

快照

Special Thanks
I would like to extend my special thanks to all the experts whose lectures and blogs I have studied to gain a limited yet significant knowledge of the Pine language.

Best regards,
Rajat Kumar Singh (johntradingwick)
Community Manager (India), TradingView.
OscillatorsRelative Strength Index (RSI)

仅限邀请脚本

仅限作者授权的用户访问此脚本,并且通常需要付费。您可以将其添加到收藏中,但是只有在向作者请求并获得许可之后,才能使用它。 请联系johntradingwick了解更多信息,或按照以下作者的说明操作。

TradingView不建议付费使用脚本,除非您100%信任作者并了解脚本的工作原理。在许多情况下,您可以在我们的社区脚本免费找到不错的开源替代方案。

作者的说明

想在图表上使用此脚本?

警告:请在申请访问权限之前阅读

Rajat Kumar Singh,
B.Tech (Delhi Technological University)
Global Community Manager, TradingView

✅ Telegram: t.me/johntradingwick
✅ Blog: tradingwick.in/
✅ Amorella: amorella.in/
更多:

免责声明