OPEN-SOURCE SCRIPT

Lines of Chaos (ATR/ADR Levels)

Cập nhật
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.
Phát hành các Ghi chú
  • Added Support and Resistance Zones to make bounces/breakthroughs easier to spot when not directly on the line
  • Refactored code
Phát hành các Ghi chú
  • 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

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm