DMIPlusCustom (Series Function)
The DMIPlusCustom series function returns the directional movement index plus value for a security.
Syntax
DMIPlusCustom(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
DMIPlusCustom measures upward movement strength.
DMIPlusCustom is the one of the core components to the directional movement calculations. It is derived by comparing the High of the current bar to the High of the previous bar. If the High of the current bar is greater than the High of the previous bar, than DMIPlusCustom value is that difference for the current bar.
DMIPlusCustom provides added flexibility over the normal DMIPlus 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 DMIPlusCustom value.
The PriceH, PriceL, and PriceC input parameters will need to reference some High, Low, and Close values based on the symbol(s) in your chart.
The value for the Length input parameter should always be a positive whole number.
Example
Assigns to Value1 the DMIPlusCustom value of the second data element in a chart (Data2), High of Data2, Low of Data2, Close of Data2, where the DMI length is 14 bars, then plots Value1:
Value1 = DMIPlusCustom (High of Data2, Low of Data2, Close of Data2,14);
Plot1(Value1, "DMIPCus");
Reference
Wilder, J. Welles, Jr. New Concepts in Technical Trading Systems (Greensboro, NC: Trend Research, 1978).