OPEN-SOURCE SCRIPT

Lines of Chaos (ATR/ADR Levels)

由skyzlimit提供
已更新
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精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明