Guides, manuals and platform references.
Published November 21, 2026 · View Markdown
A Mass Index reading can tell the same story while price climbs or falls. Its input is the distance between each bar's high and low, so a reversal bulge does not carry a built-in buy or sell instruction.
For TradingView automation, there are three separate decisions: recognize the bulge, choose direction, and decide when the opportunity expires. Before following AlgoWay's TradingView alert adapter guide, write those decisions down. An adapter can work with exposed indicator values; it cannot supply a directional rule you have not defined.
The conventional calculation uses a nine-period EMA of high minus low, then another nine-period EMA of that first average. Divide the first average by the second and sum the latest 25 ratios. StockCharts documents this calculation and the reversal-bulge convention.
In compact notation: A = EMA(high - low, 9), B = EMA(A, 9), and Mass Index = sum(A / B, 25). These are periods of the chosen chart, not automatically calendar days. The ratio needs a valid, nonzero denominator.
Consider an arithmetic illustration, not a market test. If every ratio in a 25-bar window is 1, the sum is 25. If 20 ratios are 1 and five are 1.4, the sum is 27. The result describes the relationship between two smoothed range measures. It is neither a price target nor a 27% probability of reversal.
Imagine two invented price histories with identical high-low ranges on every bar but opposite paths through price. Given identical initialization, their range averages and Mass Index readings are identical. The indicator cannot recover direction from information it never received.
The classic sequence first exceeds 27 and later drops below 26.5. A reading below 26.5 by itself does not prove that sequence occurred. The cTrader Mass Index reference describes the two thresholds and explicitly separates the bulge from directional confirmation.
This hypothetical ledger shows one way to formalize that sequence. It uses strict thresholds and completed-bar values, and consumes a setup when the lower threshold is crossed.
| Bar | Mass Index | Recorded state | New bulge event? |
|---|---|---|---|
| 1 | 26.2 | Not armed | No: no prior setup |
| 2 | 27.2 | Armed | No: setup only |
| 3 | 26.8 | Still armed | No |
| 4 | 26.4 | Consumed | Yes: below 26.5 after setup |
| 5 | 26.1 | Not armed | No: the same bulge is finished |
A rule that buys whenever the value is below 26.5 would behave differently on bars 1 and 5. It would also add a long-side assumption. Neither choice is implied by the indicator's name.
For a reproducible implementation, specify whether exactly 27 arms the setup, whether a new high reading restarts an expiry clock, and what happens if the system begins observing halfway through a bulge. The ledger above requires greater than 27, then less than 26.5; it makes no claim that these choices are optimal.
cTrader's documentation gives price crossing a nine-day EMA after a bulge as an example of directional confirmation. That is an additional price rule, not a component of the Mass Index formula. On an intraday chart, a nine-bar EMA is not a nine-day EMA.
Suppose your experimental long rule requires a completed bulge and a later close crossing above a specified price average. Define whether that crossing must happen on the bulge bar or may happen within the next five bars. If it happens six bars later, the two versions disagree. That disagreement is a strategy-design choice, not an indicator malfunction.
Also decide whether the bulge permits one trade or several, whether an opposite signal cancels permission, and whether an existing position blocks a new entry. A confirmation filter can delay or remove trades; it does not certify that the remaining trades will win.
Keep a small diagnostic record containing the chart symbol, timeframe, indicator settings, setup bar, completion bar, direction rule and expiry. Compare the intended events with the script's actual alerts. Do not count every below-threshold bar as a fresh setup unless that is deliberately the strategy.
The Bollinger squeeze guide covers a related but different question: low-volatility compression before a breakout. Mass Index instead compares smoothed high-low ranges and waits for a bulge sequence. Substituting one for the other changes the experiment.
Evaluate any complete entry-and-exit rule with costs and an independent evaluation period before allowing it to control orders. No backtest or performance result is claimed here. The useful deliverable is a rule whose second alert is as explainable as its first.