+1 888 340 6572

Miscellaneous > Ergotic_MDI (Mean Deviation Indicator)

Article/Author: Origin: http://www.traders2traders.com. Coded by: Ernie Bonugli, Jim Johnson Author: William Blau

File Includes:
Indicator - Ergotic_MDI
Function - DTI
Function - HMU
Function - LMD
Function - MDI
Function - TSI
Function - TVI
Function - DXAverage
Function - TXAverage
Indicator - *DTI Signal
Indicator - DTI
Indicator - Ergotic_CSI
Indicator - Ergotic_MACD
Indicator - Ergotic_TSI
Indicator - Ergotic_TSI-2
Indicator - Ergotic_TVI

Category: Indicator > Miscellaneous

Description:

This is one of the techniques described by William Blau in his book "Momentum, Direction and Divergence" (1995). If you like to learn more, we advise you to read this book. His book focuses on three key aspects of trading: momentum, direction and divergence. Blau, who was an electrical engineer before becoming a trader, thoroughly examines the relationship between price and momentum in step-by-step examples. From this grounding, he then looks at the deficiencies in other oscillators and introduces some innovative techniques, including a fresh twist on Stochastics. On directional issues, he analyzes the intricacies of ADX and offers a unique approach to help define trending and non-trending periods.

MDI is calculated according to this formula:

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

This indicator is a variation of MACD indicator.

Usage:

As a trend-following indicator, the MACD may be interpreted similarly to other moving averages. When the MACD crosses above the MACD Average, an uptrend may be beginning, indicating a buy signal. Conversely, when the MACD crosses below the MACD Average, a downtrend may be beginning. As an oscillator, the MACD can signal overbought and oversold conditions. Inputs:

R - number of bars to calculate third EMA
S - number of bars to calculate second EMA
U - number of bars to calculate first EMA
Zeroline - zeroline

EasyLanguage Code:
{ERGOTIC_MDI = ERGOTIC MEAN DEVIATION INDICATOR BY BILL BLAU.

FORMAT: ERGOTIC_MDI(R)
SIGNALLINE(R) }

INPUTS: R(32), S(5), U(5), ZEROLINE(0);

VALUE1 = MDI(CLOSE,R, S, U);

VALUE2 = XAVERAGE(MDI(CLOSE, R, S,U), U);

PLOT1(VALUE1, "ERGMDI");
PLOT2(VALUE2, "SIGLINE");
PLOT3(ZEROLINE, "ZERO");