> For the complete documentation index, see [llms.txt](https://help.quantower.com/quantower/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.quantower.com/quantower/analytics-panels/chart/technical-indicators/volatility/average-true-range.md).

# Average True Range (ATR)

Use the Average True Range (ATR) in Quantower to measure market volatility and set adaptive stops and position sizing

## Description&#x20;

Average True Range is a volatility based indicator which describes the range of  bars averaged for some period of time. Most common smoothing period is 14. ATR does not show any trend moving or reversing, it only measures volatility and it structure.

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-LEIyWSqV_jxSMP9EcKl%2F-LEJ1pigRz-tmXATS8u7%2FScreenshot_3.png?alt=media\&token=0fbb2549-e437-4a8d-acf0-a01f5b54f26b)

## Formula

<div align="left"><img src="https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-LEIyWSqV_jxSMP9EcKl%2F-LEJ22BMBIW0m-alkISy%2Fimage.png?alt=media&amp;token=7d1056d5-3a04-4728-a5cb-d33adc7fa8b7" alt=""></div>

<div align="left"><img src="https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-LEIyWSqV_jxSMP9EcKl%2F-LEJ2EsXvhvZakhDo0lW%2Fimage.png?alt=media&amp;token=da0cf5df-eab9-4f34-9e28-a51c212fbbb3" alt=""></div>

&#x20;The first ATR value is calculated using the arithmetic mean formula:

<div align="left"><img src="https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-LEIyWSqV_jxSMP9EcKl%2F-LEJ2W9WDqbWKtVbRz7L%2Fimage.png?alt=media&amp;token=e5a56d5a-c0b5-41a6-be2c-a688c9ee7622" alt=""></div>

## Most useful cases

* **Divergence/Convergence** - Divergence/Convergence pattern is a form of price action when new high(low) of the price not confirmed with a new high of  ATR. This is a very good approach to find a weakness of existing trend

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-LEJ2Zt68VWe2gAN3KIn%2F-LEJ45oN8MvkTm5BCLGA%2Fimage.png?alt=media\&token=27ada11d-d213-4629-81ee-b24c095faaa4)

* **Confirmation of existing tendency -** if price and ATR rise together it can be interpreted as a confirmation of a strength of the trend

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-LEJ2Zt68VWe2gAN3KIn%2F-LEJ64FLFZhqN2gRGrZt%2Fimage.png?alt=media\&token=5b86c519-7bcc-4ff9-a441-09cdcfcbd366)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.quantower.com/quantower/analytics-panels/chart/technical-indicators/volatility/average-true-range.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
