OPEN-SOURCE SCRIPT

RSI with 3 Moving Averages (MA 20, MA 50, MA 200)

Remarks:
Moving Averages (MA 20, MA 50, MA 200):
SMA (Simple Moving Average) calculations are made for 20, 50 and 200 periods.
These moving averages are plotted in blue, orange and red respectively.
RSI (Relative Strength Index):
14-period RSI calculation is made.
The RSI value is plotted in blue.
Overbought (70) and oversold (30) levels are shown in red and green with horizontal lines.
Background Color Change:
When the RSI value is above the overbought level (above 70), the chart shows a red background color.
When the RSI value is below the oversold level (below 30), a green background color is shown.
Usage:
This code displays both the RSI indicator and the three moving averages (MA 20, MA 50, MA 200) on the same chart.
You can also track overbought and oversold levels and observe the corresponding background color changes.


Moving AveragesRelative Strength Index (RSI)

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明