Systemicbeta

Mass Index

systemic:core-miIndicators

Inputs

NameTypeDescription
Window FastWhole numberThe EMA window used to smooth the bar range, for both the first and the second smoothing.
Window SlowWhole numberThe number of bars over which the EMA ratio is summed to produce the Mass Index.
Price HighNumber seriesThe highest price of each bar, one of the two inputs used to calculate the bar's range.
Price LowNumber seriesThe lowest price of each bar, paired with Price High to calculate the bar's range.

Outputs

NameTypeDescription
MINumber seriesThe Mass Index of each bar, a volatility measure that rises when the price range expands.

Cost

7
credits per run
1,000
bars

0.208 + 0.00581·n credits for n bars, rounded up. The marks are each plan's limit of bars.

The Mass Index is a volatility-based indicator developed by Donald Dorsey in 1992. Momentum indicators measure direction. The Mass Index measures how the price range expands and contracts, to detect when volatility is building toward a possible trend reversal.

Key insight: The Mass Index does not tell you which way the market will move, only that it may change direction soon. You need other indicators to tell bullish from bearish.


The Reversal Bulge Pattern

The best-known Mass Index signal is the "reversal bulge" (with the standard settings 9 and 25):

  1. MI rises above 27 (range is expanding rapidly)
  2. MI falls below 26.5 (expansion is exhausting)
  3. A trend reversal often follows
flowchart LR
    subgraph Phase1["1. Buildup"]
        A["MI rising toward 27"]
    end
    
    subgraph Phase2["2. Bulge"]
        B["MI crosses above 27"]
    end
    
    subgraph Phase3["3. Trigger"]
        C["MI drops below 26.5"]
    end
    
    subgraph Phase4["4. Signal"]
        D["Reversal may follow"]
    end
    
    Phase1 --> Phase2 --> Phase3 --> Phase4

Mathematical Foundation

The Mass Index uses a ratio of EMAs to detect when price ranges expand unusually fast. Below, FF is Window Fast (classically 9) and SS is Window Slow (classically 25):

Step 1: Calculate the Bar Range

Range=High−Low\text{Range} = \text{High} - \text{Low}

Step 2: Smooth the Range (Fast EMA)

EMAfast=EMAF(Range)\text{EMA}_{\text{fast}} = \text{EMA}_F(\text{Range})

Step 3: Double-Smooth (Slow EMA)

EMAslow=EMAF(EMAfast)\text{EMA}_{\text{slow}} = \text{EMA}_F(\text{EMA}_{\text{fast}})

Step 4: Calculate the EMA Ratio

Ratio=EMAfastEMAslow\text{Ratio} = \frac{\text{EMA}_{\text{fast}}}{\text{EMA}_{\text{slow}}}

Step 5: Sum Over Window Slow Bars

Mass Index=∑i=1SRatioi\text{Mass Index} = \sum_{i=1}^{S} \text{Ratio}_i


Why This Formula Works

The ratio of the single EMA to the double EMA is normally close to 1.0 (when ranges are stable). When ranges start to expand quickly, the fast EMA reacts sooner than the slow EMA, which pushes the ratio above 1.0.

Summing 25 of these ratios (Window Slow = 25):

  • Stable market: MI ≈ 25 (each ratio ≈ 1.0)
  • Expanding ranges: MI > 27 (ratios consistently > 1.0)
  • Contracting ranges: MI < 25 (ratios < 1.0)
flowchart TD
    subgraph Inputs["Price Inputs"]
        H["High prices"]
        L["Low prices"]
    end
    
    subgraph Range["Bar Range"]
        R["High − Low"]
    end
    
    subgraph Fast["Fast EMA"]
        F["EMA of Range (Window Fast)"]
    end
    
    subgraph Slow["Slow EMA"]
        S["EMA of Fast EMA (Window Fast)"]
    end
    
    subgraph Ratio["EMA Ratio"]
        RAT["Fast / Slow"]
    end
    
    subgraph Sum["Mass Index"]
        MI["Sum of Ratios (Window Slow)"]
    end
    
    H --> R
    L --> R
    R --> F --> S
    F --> RAT
    S --> RAT
    RAT --> MI

Interpreting Mass Index Values

MI ValueMarket ConditionImplication
< 25Range contractingLow volatility, trend may continue
25-26Normal volatilityNo signal
26-27Range expandingWatch for bulge formation
> 27Significant expansionReversal bulge forming
Drops below 26.5 (after >27)ExhaustionReversal signal triggered

Trading Strategies

Strategy 1: Classic Reversal Bulge

The textbook Mass Index strategy:

StepConditionAction
1MI rises above 27Note: volatility expanding
2MI drops below 26.5Signal triggered
3Check current trendDetermine reversal direction
4Confirm with another indicatorConsider a trade

Important: The Mass Index only signals that a reversal may occur, not in which direction. Use a trend indicator (EMA, ADX) to decide between long and short.

Strategy 2: MI + Moving Average

ConditionInterpretationAction
MI reversal bulge + Price below 50 EMABearish trend exhaustingLook for long entry
MI reversal bulge + Price above 50 EMABullish trend exhaustingLook for short entry

Strategy 3: Volatility Confirmation

Use MI as a filter for other signals:

MI StateOther SignalTrade?
MI > 27Any entry signalWait—reversal coming
MI < 25Trend-following signalProceed—trend stable
MI dropping from 27+Breakout signalHigh probability setup

Missing Data

A bar is skipped when High or Low is missing on it. Both EMAs and the final sum use only the bars that have data: a Friday-to-Monday gap counts as one step, not three calendar days. Every skipped bar is empty in the output. The warm-up is empty too: the first 2 × Window Fast + Window Slow − 3 bars with data (40 bars with 9 and 25). Nothing is filled with an earlier value or with 0.

Note: window_fast is used for both EMA stages. window_slow only sets how many ratios are summed.

Configuration Parameters

ParameterStandard valueDescription
Window Fast9EMA window for smoothing the bar range, used for both EMAs
Window Slow25Number of bars over which the EMA ratio is summed

Note: The module has no built-in defaults. MI moves around the Window Slow value, so the 27 and 26.5 levels only apply when Window Slow is 25.

Alternative Configurations

StyleFastSlowEffect
Standard925Classic Dorsey settings
Sensitive725Earlier signals, more noise
Smooth1225Fewer signals, more reliable

Mass Index vs. Other Volatility Indicators

IndicatorMeasuresMI Advantage
ATRAverage range magnitudeMI detects changes in range, not absolute size
Bollinger BandsStandard deviationMI uses ratio approach, less lag
VIXImplied volatilityMI works on any asset, uses price only
Keltner ChannelsATR-based bandsMI specifically designed for reversals

Strengths

AspectBenefit
Direction-agnosticWorks equally in uptrends and downtrends
Early warningSignals form before the reversal, not after
Different approachMeasures range changes that other indicators ignore
Clear threshold27/26.5 levels provide objective signals

Limitations

AspectChallenge
No directionMust combine with trend indicators
Rare signalsBulges above 27 don't occur frequently
False signalsCan trigger in choppy, trendless markets
Requires confirmationDo not rely on MI signals alone

Combining MI with Other Modules

CombinationPurpose
MI + EMADetermine reversal direction (long vs. short)
MI + RSIConfirm overbought/oversold at reversal
MI + MACDDual confirmation of momentum shift
MI + ADXVerify trend strength before reversal
MI + ATRSize positions based on current volatility

Historical Context

Donald Dorsey introduced the Mass Index in a 1992 article in Technical Analysis of Stocks & Commodities magazine. His idea was that the price range often expands before a trend reversal: prices become more volatile before they change direction.

The indicator is still useful because it captures something most momentum indicators miss: the exhaustion of a trend, shown by rising volatility.


Data Alignment and Multi-Input Considerations

The Mass Index needs High and Low series that cover the same bars. Systemic aligns them by time:

Input Alignment

ScenarioWhat Systemic DoesImpact on MI
Same data source, same periodNo adjustment neededAccurate range calculation
Different periodsThe series with the longer period repeats its last value until its next barRanges look more stable than they are
Different lengthsThe result covers the dates that both series shareShorter output

Critical Alignment Warning

The Mass Index depends on the relationship between High and Low prices:

Range=High−Low\text{Range} = \text{High} - \text{Low}

Mismatched data can produce:

  • Negative ranges if Low is above High after alignment
  • Ranges that look too stable when a value is repeated over several bars
  • Distorted EMA ratios that give false reversal signals

Best Practice: Always take High and Low from the same data source and the same period. Never mix a daily High with an intraday Low.

Window Parameters

The window_fast and window_slow parameters are constants: one fixed value for the whole run. The run fails if the price series has fewer bars than the larger of the two.


Indicator Profile

quadrantChart
    title MI Indicator Profile
    x-axis Low Popularity --> High Popularity
    y-axis Low Reliability --> High Reliability
    quadrant-1 High potential  
    quadrant-2 Established leaders
    quadrant-3 Niche tools
    quadrant-4 Popular but risky
    MI - Stocks: [0.35, 0.65]
    MI - Crypto: [0.25, 0.55]

Profile Dimensions

DimensionStocksCryptoExplanation
Popularity0.350.25Niche indicator, known mainly among volatility specialists. Less documented than mainstream indicators like RSI or MACD.
Reliability0.650.55Specific reversal bulge pattern has historical backing, but signals are rare. Cryptocurrency volatility patterns less studied.
ComplexityModerateModerateThe double-EMA ratio requires some understanding of EMAs. The threshold signals are simple once understood.
VersatilityLimitedLimitedDesigned for reversal detection. Not suited to trend-following or mean-reversion strategies without changes.
Recent InterestStableGrowingClassic indicator with consistent niche following. Crypto traders increasingly exploring volatility-based indicators.

Further Reading

Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5