Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Mean Deviation Index Blau_MDI - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 6 reads | 0 comments |

Mean Deviation Index Blau_MDI - indicator for MetaTrader 5

Author: Andrei N. Bolkonsky

The Ergodic MDI (Mean Deviation Index, MDI) is a double-smoothed mean deviation index (see Momentum, Direction, and Divergence: Applying the Latest Momentum Indicator to Technical Analysis ).

The average deviation is defined as the distance between the closing price and the exponentially smoothed moving average applied to the closing price.

Mean Deviation Index Blau_MDI - indicator for MetaTrader 5

William Blau's Mean Deviation Index

The calculation formula for average deviation is:

md(price,r) = price - EMA(price,r)

The calculation formula of the average deviation index is:

MDI(price,r,s,u) = EMA(EMA(md(price,r),s),u) = EMA(EMA(price-EMA(price,r),s),u)


Attachment download

📎 blau_mdi.mq5 (6.41 KB)

📎 williamblau.mqh (4.52 KB)

Source: MQL5 #373

Verification code Refresh