All indicators

Mass Index

By LuxAlgoApr 13, 2020

Mass Index is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

The Mass Index sums the ratio of a 9-period EMA of the high-low range to a double 9-period EMA of that range over a 25-bar window, producing an oscillator that rises as the trading range widens relative to its own smoothed baseline. It carries no directional information at all. The design detects range expansion and contraction, and its traditional read is the reversal bulge: a climb above 27 followed by a drop back below 26.5. Defaults match Donald Dorsey's original specification, and the script plots the Mass Index line against two dashed reference levels, the Setup Level and the Trigger Level.

How to Trade the Mass Index?

  • Cross above the Setup Level (27): ranges have expanded well beyond their smoothed baseline. The bulge is armed.
  • Subsequent drop below the Trigger Level (26.5): the contraction that completes the reversal bulge, traditionally read as raised odds that the prevailing move is exhausting.
  • Rising index without a bulge: general range expansion; falling readings mark quieting bars.
  • Direction comes from elsewhere: the index says a turn is more likely, never which way. A trend read such as the slope of a short moving average supplies the side.

Mass Index Settings

  • Sum Length (default 25): bars over which the single/double EMA ratio is summed. Longer smooths the index and makes bulges rarer; shorter shifts its typical level lower.
  • EMA Length (default 9): length of the single EMA of the high-low range and of its double smoothing.
  • Setup Level (default 27): the arm level for the reversal bulge.
  • Trigger Level (default 26.5): the completion level; widening its gap below the Setup Level delays triggers.

Frequently Asked Questions

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.