talib.atr

Average true range over length bars. Read it as a measure of how far the market has been travelling, not as a price level. There is no source argument. The reading is built from the chart’s own bars.

talib.atr(series int length) → series float
ParameterTypeRequiredDescription
lengthseries intyesHow many bars the average covers.

Returns series float — A series float carrying the average true range.

indicator("Average true range")
plot(talib.atr(14))

See also talib.alma · talib.barssince · talib.bb

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade