ADXR

Directional Movement Rating
Description
The Directional Movement Rating measures the strength of the prevailing trend and defines if there is direction in a market. A reading above 25 is considered directional. ADXR is an average of two ADX readings - the most recent, and the value N -1 bars ago.
Category
Directional Movement Index
Parameters
N ( Default: 14 Min: 1 Max: 100 )
Chart Script

ADX: "ADX(N)[ADX]";
ADXR: (ADX+ REF(ADX, N-1))/ 2;