PureDelta

Daily Chart ATR & Movement %

This Pine Script, titled "Daily ATR & Movement %," is designed for traders looking to gauge volatility and price movements relative to that volatility directly on their trading chart. The script calculates and displays the Average True Range (ATR) over a 14-day period using daily data, alongside the percentage movement of the current price from the previous day's close, scaled by the ATR. These metrics provide a snapshot of daily volatility and the magnitude of price movements within that context, which can be crucial for making informed trading decisions, especially in markets where volatility is a significant factor.
Key Features:

  • Daily ATR Calculation: Utilizes the ta.atr(14) function to compute the Average True Range on a daily basis, which measures market volatility by decomposing the entire range of asset prices for that day.
  • Movement Percentage: The script calculates the movement from yesterday’s closing price to today’s current price as a percentage of the daily ATR. This shows how significant today's price change is relative to the typical daily volatility, which helps in understanding whether the price movement is substantial or trivial.
  • Customizable Label Display: Traders can customize the display through a user input dropdown menu for label size ("small", "normal", "large", "huge") and a slider for vertical offset. This allows for better visibility and customization based on user preference and screen setup.
  • Dynamic Label Updates: A label is dynamically updated each bar with the latest ATR value and movement percentage. This ongoing update keeps traders informed in real-time without manual recalculations.

How to Use:

Setup: Apply the indicator to any chart.
Customization: Adjust the label size and vertical position to suit your viewing preference using the script’s input options.
Interpretation: Monitor the displayed ATR value and movement percentage to assess volatility and relative price movements. High percentages could indicate significant moves worth trading, while low percentages suggest minor changes.

This script is particularly useful for traders who rely on volatility-based trading strategies, such as breakout trading, where understanding the context of price movements relative to typical market fluctuations can provide a strategic edge.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?