Skip to main content

DX

Type: dx • Category: indicators

Description

Directional Movement Index

Parameters

NameTypeDescriptionRequiredDefault
highstringList of highest pricesno
lowstringList of lowest pricesno
closestringList of closing pricesno
timeperiodnumberno14

Help

DX

Directional Movement Index

The Directional Movement Index (DX) is a technical indicator used in financial markets to measure the strength of a trend. It is a part of the Directional Movement System, which was developed by J. Welles Wilder.

Description

The DX indicator is used to determine the strength of a trend by comparing the gains and losses of an asset over a specified period. It is calculated based on the Positive Directional Indicator (+DI) and Negative Directional Indicator (-DI) lines, which are derived from the highs, lows, and closes of the asset.

What does this worker do?

This worker calculates the Directional Movement Index (DX) for a given set of high, low, and close prices over a specified period. It takes into account the time period for which the calculation is to be performed and returns the DX values.

How to interpret the results

The DX indicator ranges from 0 to 100. A high DX value indicates a strong trend, while a low DX value indicates a weak or absent trend. Typically:

  • A DX value above 25 indicates a strong trend.
  • A DX value below 20 indicates a weak or absent trend.

Parameters

The following parameters are required to calculate the DX:

ParameterTypeDescriptionDefault
highstringList of highest prices-
lowstringList of lowest prices-
closestringList of closing prices-
timeperiodnumberTime period for calculation14

Example JSON Schema:

{
"high": "list of highest prices",
"low": "list of lowest prices",
"close": "list of closing prices",
"timeperiod": 14
}

Make sure to provide the list of prices as strings and the time period as a number. If not specified, the default time period is 14.