OPEN-SOURCE SCRIPT

ATR Levels

已更新
The indicator calculates and displays key levels based on the Average True Range (ATR) of an asset's price. The ATR is a measure of market volatility, and this indicator uses it to create trigger levels and ATR target levels. The "ATR Levels" indicator helps traders identify potential entry and exit points based on market volatility, providing valuable information for their trading decisions.

The indicator adds text labels to indicate whether the levels are for "Puts" or "Calls" on the trigger levels, and "Target 1" or "Target 2" on the ATR target levels.

Input Description:

ATR Length: This is an input parameter that allows the user to set the number of periods used to calculate the Average True Range (ATR). The ATR measures the market's volatility, and a higher length value will result in a smoother ATR line.

Trigger Percentage: Another input parameter that determines the percentage above and below the previous day's close at which the trigger levels will be plotted. It allows traders to set the sensitivity of the trigger levels.

Lower Trigger Level Color and Upper Trigger Level Color: These input parameters allow the user to customize the colors of the trigger levels. The indicator will plot two lines representing the lower and upper trigger levels.

Level Size: This input parameter allows the user to adjust the thickness of the trigger level lines.

ATR Target Color: An input parameter that sets the color for the ATR target level lines.

ATR Target Multiplier 1 and ATR Target Multiplier 2: These are input parameters that allow the user to set the multiplier for calculating the ATR target levels. The indicator will plot two ATR target lines above and below the previous day's close, each multiplied by the specified multiplier.
版本注释
Fixed multiple label plotting: This was causing visual clutter and redundancy.

Extended the label to the right. This was resulting in the labels being plotted at the current live candle and making price hard to watch.
版本注释
- Added Table
- Added Weekly Calculations TF
- Added Alert conditions for trigger/target cross on both directions
- Change Target Levels to specify bullish and bearish labels
版本注释
- Added table cell to display $ Range
- Added Target 3
Average True Range (ATR)

开源脚本

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

想在图表上使用此脚本?

免责声明