Glossary
Average True Range
A measure of the typical size of a price bar, in price units, which includes gaps between bars. Wilder defined it in 1978.
The true range of a bar is the largest of high - low, |high - previous close| and |low - previous close|. The ATR is the average of true ranges over n periods, usually 14, smoothed as ATR_new = (ATR_old x 13 + TR) / 14.
It is a measure of size, not direction, and it is often used to scale distances and position sizes.
Example: a previous close of 100 and a bar with high 104 and low 101 give a true range of 4. An ATR of 2.5 then becomes (2.5 x 13 + 4) / 14, or 2.607.