The underlying idea comes from the Average True Range developed by J. Welles Wilder. ATR measures the average size of recent price ranges, including gaps where applicable. A common setting is 14 periods, although traders can adjust it.
True Range for each candle is generally calculated as the largest of:
Current high minus current low Absolute cur...