← Back to Library
Volatility

Average True Range (ATR)

ATR measures market volatility by decomposing the entire range of an asset price for that period. It does not indicate price direction, only the degree of price movement.

Pine Script V6
//@version=6
indicator('ATR', overlay=false)
len = input.int(14, 'Length')
plot(ta.atr(len), 'ATR', color=color.red)