Oscillator Intraday Momentum Index displays the ratio between the directed change in the price and the total change in the prices over the specified period.
There are three adjustable parameters:
Calculation:
where:
U = SMA(Up, Period), D = SMA(Down, Period)
If Close > Open:
otherwise:
If Close < Open:
otherwise:

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21106