Minus Directional Movement (MDM)
Namespace: OpenQuant.API.Indicators
Assembly: OpenQuant.API (in OpenQuant.API.dll)
Syntax
Remarks
The concept of Directional Movement is based on the assumption that in an upward trend today?s highest price is higher than yesterday?s highest price and in a downward trend today?s lowest price is lower than yesterday?s lowest price. If this is the case, it is a matter of the so-called Outside Days. The difference between today?s high and yesterday?s high corresponds to the Plus Directional Movement (PDI). The difference between today?s low and yesterday?s low is the Minus Directional Movement (MDM).
These Outside Days consist of a PDM as well as an MDM. Days in which yesterday?s highest price or yesterday?s lowest price are not exceeded are described as Inside Days and contain a PDM and an MDM, or zero. Do not let the plus or minus sign designation mislead you. They only indicate upward or downward movement, not values. The directional movement value is always a positive number of absolute value, regardless of upward or downward movement. In the Directional Movement calculation, Inside Days are consequently not taken into account. It is possible for the directional movement to be zero. This occurs when the current trading range is inside the previous trading range, or when the trading ranges, current versus previous, are equal.
Formula: 