ADX - FXB.ta.ADX

The FXB.ta.ADX class calculates the directional movement system, ADX. 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

The primary output value - GetValue() - of the calculation is the ADX. The calculation also provides the DI+ and DI- values:

Parameter

Description

GetPositiveValue(idx)

Gets the DI+ value at index #idx

GetNegativeValue(idx)

Gets the DI- value at index #idx

GetPositiveArray()

Returns an array of all DI+ values

GetNegativeArray()

Returns an array of all DI- values