OPEN-SOURCE SCRIPT

Lines of Chaos (ATR/ADR Levels)

已更新
Lines of Chaos Indicator

This script is designed to provide traders with ATR (Average True Range) and ADR (Average Daily Range) support and resistance levels.

How it Works:

  • Support and Resistance Lines: The script plots ATR/ADR-based support and resistance lines based on a moving average of the last ATR/ADR Length days, the previous day's close, and the current day's open. Changing the ATR/ADR Length value changes the number of days of data to average.
  • EMA: The EMA is colored red when the ticker is potentially bearish. The EMA is colored green when the ticker is potentially bullish. Changing the EMA Length changes the number of data bars to average.
  • Default Settings: The default settings are optimized for most trading environments.


Key Features:

  • ATR & ADR Calculation: You can use ATR, ADR, or both. ATR is recommended for most scenarios.
  • Customizable Lengths: Adjust the ATR/ADR Length to refine the average calculation to your preference, with 14 being the standard value.
  • EMA for Market Bias: The EMA helps determine the ticker bias. It is colored green when the market is above the average price and red when below. This allows you to more easily determine whether or not the ADR/ATR levels are valid.
  • Versatile Usage: Suitable for various trading types, ensuring broad applicability across different market conditions.


How to Use:

  • Bounces off Levels: When the price bounces off a support/resistance level, the price will likely respect this level. This indicates that the price is unlikely to exceed the ticker's average volatility.
  • Breakthroughs of Levels: When the price breaks through a support/resistance level, the price will likely continue beyond this level. This indicates that the price has moved beyond that ticker's average volatility.
版本注释
  • Added Support and Resistance Zones to make bounces/breakthroughs easier to spot when not directly on the line
  • Refactored code
版本注释
  • Zone Range Percentage Setting: You can now change the zone range percentage. The zone range percentage controls the size of the zones for each support/resistance level. The default of 1 (1% above, 1% below) is recommended.
  • Support/Resistance Lines are now hidden by default in favor of Support/Resistance Zones
  • Support/Resistance Zone Lines now have a thickness of 2 by default
Pivot points and levelsSupport and ResistanceVolatility

开源脚本

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

想在图表上使用此脚本?

免责声明