ADX (Function)

image\trumpet2.gif Disclaimer

The ADX series function returns the average directional movement index (DMI) for a security.

Syntax

ADX(Length)

Returns (Double)

A positive numeric value for the current bar.

Parameters

Name Type Description
Length Numeric Sets the number of bars to consider for the average directional movement index calculation.

Remarks

ADX attempts to measure the trending quality of a security independent of direction. The greater the ADX value, the stronger a security is trending.

The DirMovement function calculates the DMI and ADX values.

The value for the Length input parameter should always be a whole number.

Example

Assigns the ADX value to Value1, where the ADX length is 14 bars, then plots Value1:

Value1 = ADX(14);

Plot1(Value1, "ADX");

Reference

Wilder, J. Welles, Jr. New Concepts in Technical Trading Systems (Greensboro, NC: Trend Research, 1978).

See Also

ADXCustom, DirMovement