> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/reference/grid-language/indicators/average-true-range.md).

# Average True Range

atr() calculates the Average True Range from candles to measure volatility over a set period.

Learn how to use the Average True Range indicator in Origami Tech to measure price volatility and improve stop-loss and risk management.

`atr(candles: List[[Candle]], period: int = 14) -> List[Decimal]`

## Average True Range (ATR)
