OPEN-SOURCE SCRIPT

Lines of Chaos (ATR/ADR Levels)

Telah dikemas kini
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.
Nota Keluaran
  • Added Support and Resistance Zones to make bounces/breakthroughs easier to spot when not directly on the line
  • Refactored code
Nota Keluaran
  • 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

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian