Skip to content

IMI

Summary

Intraday Momentum Index: an RSI-like 0-100 oscillator built from the open-to-close body of each bar. Over a rolling window it ratios cumulative up-body moves against total up+down body moves.

Formula

upsum = Σ(close-open) for bars with close>open; downsum = Σ(open-close) for bars with close<=open, over window [i-lookback, i]; IMI = 100 * upsum/(upsum+downsum)

Inputs

  • inPriceOC — Per-bar open and close prices

Outputs

  • outReal — IMI oscillator value, 0-100

Parameters

  • optInTimePeriod — Rolling window length for the up/down body sums

Implementation

TA-Lib Definition: imi.c · imi.yaml

Native File
C ta_IMI.c
Rust imi.rs
Java Core.java

TA-Lib is also available for Python, R and more using a wrapper.

Aliases

Intraday Momentum Index

See Also

RSI