Skip to content

Indicator Description

MI (Mass Index) is a trend indicator that reflects the strength and direction of market trends by calculating price trend changes.

Function Information

  • Function Name: MI
  • Input Parameters: High, Low
  • Parameter Settings: timeperiod1 (default: 9), timeperiod2 (default: 25)
  • Output: mi

Calculation Principle

MI is calculated using the following formula:

Range = High - Low
EMA9 = EMA(Range, timeperiod1)
EMA_EMA9 = EMA(EMA9, timeperiod1)
Ratio = EMA9 / EMA_EMA9
MI = SUM(Ratio, timeperiod2)

Where EMA is the Exponential Moving Average.

Usage Scenarios

  1. Trend direction judgment
  2. Trend strength analysis
  3. Trend reversal identification
  4. Trading signal generation