+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

MDI - Mean Deviation Index

The MDI – Mean Deviation Index AFL in Amibroker calculates the mean deviation of price from a specified moving average. Leveraging amibroker data feed  functionalities enables traders to gauge the deviation of price movements, aiding in identifying potential trend changes or volatility. This AFL assists traders in understanding price behavior relative to moving averages for more informed decision-making.

/
r = Param( "First Smoothing Periods", 32, 1, 100, 1 );
s = Param( "Second Smoothing Periods", 12, 1, 100, 1 );

MD = EMA(C - EMA(C,r),s);

Plot(MD, "MDI("+r+","+s+")", colorRed);
PlotGrid(0, colorLightGrey);

Open chat
1
Hi, how can I help you?