Average True Range - FXB.ta.ATR

The FXB.ta.ATR class calculates average true range (a rolling average of true range). It is a bar-based calculation, and requires candle data as an input. Parameters are as follows:

Parameter

Description

period

Rolling period for the calculation

maType

Type of moving average. Defaults to a simple moving average (sma / 0).