The average true range (ATR) is a technical analysis indicator introduced by market technician J. Welles Wilder Jr. in his book New Concepts in Technical Trading Systems. It measures market volatility by decomposing the entire range of an asset's price for that period.
The true range is calculated as the greatest of the following: the current high minus the current low; the absolute value of the current high minus the previous close; and the absolute value of the current low minus the previous close.
The ATR is then a moving average, generally using 14 days, of the true ranges. Therefore, the parameter "Length" in this indicator is set to 14 by default.
This indicator offers three "Smoothing" techniques: RMA, SMA, and EMA, to calculate ATR. RMA is set as the default.
ATR% is calculated by dividing the ATR by the close of the latest bar.
The ATR% multiple builds on ATR%, serving as a measurable gauge of price extension from 50-MA. It is calculated by dividing the distance between the price and the 50-MA by ATR%. Users can change how the distance between the price and the 50-MA is calculated by switching the "Price" parameter among the high, close, and open of the bar.
Each security has a historical ATR% multiple at which it tends to retrace. This is not necessarily a "short" signal. Instead, it can be used as a signal to sell further into strength or avoid initiating new/additional entries.
ATR% multiples from the 50-MA can also be used as a tool for monitoring market indices, assessing technical headwinds versus tailwinds, and determining whether to take on risk or hold positions and wait.
This indicator can show the real-time ATR% multiple from the 50-MA as well as historical data. As shown in the chart above, SPY usually pulls back at over a 5X ATR% multiple in its history, so new exposures can be avoided at that time.
There are five horizontal lines in this indicator, with values of 0, 4, 6, 8, and 10. These five lines can be hidden, and their colors and line widths can be customized. When the ATR% multiple drops below zero, the line's color turns red.
Este script é publicado como de código fechado e você pode usá-lo livremente. Você pode favoritá-lo para utilizá-lo em um gráfico. Você não pode visualizar ou modificar seu código fonte.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.