OPEN-SOURCE SCRIPT

Custom ATR + RSI with Colors

How It Works:

ATR Indicator:

ATR is calculated based on the selected smoothing method (RMA, SMA, or EMA).
The ATR line changes color dynamically based on whether it is above or below the user-defined threshold.
A horizontal dotted line marks the threshold level.

RSI Indicator:

RSI is calculated with the chosen smoothing method (SMA or EMA).
The line changes color dynamically based on its value relative to the four user-defined levels.
Includes a middle line (default: 50) to show the neutral RSI zone, displayed as a dashed line.

Custom Timeframes:

Both ATR and RSI can be configured to use the chart’s current timeframe or any custom interval.

How to Use:
Input Parameters:
Adjust ATR and RSI calculation settings, thresholds, levels, and colors in the input menu.
Visualization:
Observe ATR and RSI together on one chart with distinct colors and levels.
Analysis:
Use this combined indicator to identify volatility (ATR) and momentum (RSI) at the same time.
Average True Range (ATR)Relative Strength Index (RSI)Trend Analysis

开源脚本

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

想在图表上使用此脚本?

免责声明