ADXRCustom (Function)
The ADXRCustom series function returns the custom ADX rating value which is the (ADX + ADX of some bars ago / 2).
Syntax
ADXRCustom(PriceH,PriceL,PriceC,Length)
Returns (Double)
A positive numeric value for the current bar.
Parameters
Name | Type | Description |
PriceH | Numeric | Specifies which bar value (price, function, or formula) to use for the directional movement high price. |
PriceL | Numeric | Specifies which bar value (price, function, or formula) to use for the directional movement low price. |
PriceC | Numeric | Specifies which bar value (price, function, or formula) to use for the directional movement close price. |
Length | Numeric | Sets the number of bars to consider for the directional movement index plus calculation. |
Remarks
ADXRCustom attempts to rate securities on a rating scale that is representative of directional movement.
ADXRCustom provides added flexibility over the normal ADXR function by allowing you to specify what High, Low, and Close values to use. This is generally used to reference multi-data elements other than Data1.
The DirMovement function calculates the DMI, ADRX, and ADX values.
The value for the Length input parameter should always be a whole number greater than 0.
Example
Assigns the ADXRCustom value of the second data element in a chart (Data2) to Value1, where the ADXR length is 14 bars, then plots Value1:
Value1 = ADXRCustom(High of Data2, Low of Data2, Close of Data2,14);
Plot1(Value1, "ADXRCus");
Reference
Wilder, J. Welles, Jr. New Concepts in Technical Trading Systems (Greensboro, NC: Trend Research, 1978).