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:
U = SMA(Up, Period), D = SMA(Down, Period)
If Close > Open:
If Close < Open:
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/21106