Script: ATR Instruction



Short Name: ATR

Definition: Average True Range, a measure of volatility

Usage: ATR(period)

Objective:
  • Compute the ATR (Average True Range)
  • Returns an array of values

Note:
  • Period is usually 20
  • return a mobile simple moving average of the true range defined as the greatest of the differences between today's high and low, today high versus yesterday close and today's low versus yesterday close.

Examples:
  • atr(20)