Indicator Mass Index is used to search for trend reversals. It is based on the changes between the highest and the lowest prices. If the bandwidth becomes wider, the mass index will grow; if it narrows, then the mass index will decrease.
It has four input parameters:
Calculations:
MI = SUM(EMA(HIGH - LOW, First Period) / EMA(EMA(HIGH - LOW, First Period), Second Period), Resulting Period)

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/20699