OPEN-SOURCE SCRIPT

Custom RSI with Colors

How to Use
  1. Copy the script and paste it into the Pine Script Editor on TradingView.
  2. Save and click "Add to Chart."
  3. Adjust the parameters:

  • RSI Length: Change the calculation length.
  • RSI Method: Select between SMA and EMA for smoothing.
  • Levels and Colors: Define your four RSI thresholds and their corresponding colors.
  • Custom Timeframe: Specify a timeframe (e.g., 1D, 4H) or leave it blank to use the chart’s timeframe.

Explanation:
  • The RSI is calculated using the specified smoothing method.
  • Based on user-defined levels, the RSI line changes color dynamically.
  • Horizontal lines mark the levels for better visual reference.
Relative Strength Index (RSI)

开源脚本

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

想在图表上使用此脚本?

免责声明