OPEN-SOURCE SCRIPT

WAHIDAL ATR

This TradingView script calculates the Average True Range (ATR) and uses it to determine a stop percentage based on a user-defined multiplier. The ATR is a popular volatility indicator that measures the degree of price movement over a given period, providing insight into market volatility.

Key Features:
ATR Calculation:
The script calculates the Average True Range over a specified period (default is 14 days).
It calculates the ATR as a percentage of the opening price, offering a normalized measure of volatility.

Stop Percentage:
The script then multiplies the ATR percentage by a user-defined multiplier to compute a stop percentage. This is useful for setting dynamic stop-loss levels based on market volatility.

Customizable Inputs:
Users can customize the ATR period length and the multiplier to tailor the indicator to their specific trading strategy.

Visual Outputs:
The ATR percentage is plotted in orange, while the stop percentage is plotted in red, providing a clear visual representation of both metrics on the chart.

This indicator is useful for traders looking to assess market volatility and establish stop-loss levels that adapt to changing market conditions.
Average True Range (ATR)

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明