The Average True Range (ATR) is a technical indicator used to measure market volatility, typically using the average of true ranges from 14 periods that can be daily, weekly, monthly, or even intraday values.
The formula for ATR is:
ATR = Previous ATR (n - 1) + True Rangen / n
n= number of periods
True Range = The greater/highest of these: