Disparity Index: Formula, How to Read It, Settings and a Real S&P 500 Example
The disparity index is the gap between the close and its moving average, in percent; here is the formula, why it has no fixed overbought or oversold level, and what its extreme readings did on the S&P 500 since 1970.

On this page
The disparity index measures how far the close is from a moving average, in percent of that average. A reading of +3 means the close is 3% above its 14-bar average, −3 that it is 3% below. LuxAlgo traces the calculation to Japanese technical analysis, where it is known as the kairi, or separation, index, and credits Steve Nison with popularizing it in the West in his book Beyond Candlesticks.
Disparity index (14) on the daily S&P 500 ETF

- Price, daily candles (hollow up, filled down)
- SMA(14) of the close (dashed line)
- Disparity Index(14), % from the average (solid line)
How the disparity index is calculated
Subtract the moving average from the close, divide by the moving average and multiply by 100. LuxAlgo notes that platforms use either a simple or an exponential average and that the simple version is identical to the Kairi Relative Index. Thinkorswim’s DisparityIndex study, for instance, uses an exponential average. Our chart uses a 14-bar simple average.
How to read the disparity index
Above zero, the close is above its average; below zero, under it. The size of the reading is the size of the stretch. LuxAlgo stresses that the index is unbounded and has no universal overbought or oversold level: a stretch that is extreme for a major currency pair is routine for a small-cap stock or a cryptocurrency. Thresholds can only come from the history of the market itself; the figures below show what followed them on one index and across markets.
| Reading | What it says |
|---|---|
| Above zero | Close above its moving average, by that many percent |
| Below zero | Close below its moving average, by that many percent |
| Crossing zero | Close crossing its moving average |
| Rare reading for this market | An unusual stretch, not a forecast of a reversal |
The disparity index on a real chart
The full chart below the introduction shows the 14-bar disparity index on the daily S&P 500 ETF from October 30, 2025 to October 28, 2026, with dividend-adjusted prices. The index starts at +1.1 and was above zero on 59.2% of the days. To judge extremes, we use the 5th and 95th percentiles of the same indicator on the S&P 500 index since 1970: −3.17 and +3.10.
The March and April 2026 readings up close, same indicator

- Price, daily candles (hollow up, filled down)
- SMA(14) of the close (dashed line)
- Disparity Index(14), % from the average (solid line)
The ETF went below −3.17 on two days only, March 27 and 30, 2026, with a low reading of −3.73 at a close of 630.89. Twenty trading days later, on April 27, it closed at 711.57, 12.8% higher. Readings above +3.10 ran from April 8 to April 22, except on April 21 at +3.00, with a high of +5.33 on April 17 at 706.56; twenty trading days later the ETF was at 735.44, still 4.1% higher. The only other reading above +3.10 came on August 4, at 769.42; twenty days later the ETF was 1.2% lower. In this window, one oversold stretch was followed by a rally, one overbought stretch by further gains and one by a small decline.
Best disparity index settings
LuxAlgo reports that lookbacks of 13 and 14 bars are the most common. Longer averages give wider readings: on the S&P 500 index since 1970, the 5th and 95th percentiles were −3.17 and +3.10 with 14 bars, −10.35 and +14.66 with 200 bars. The extremes of the whole history show the same: −26.85 with 14 bars on October 19, 1987, and −39.65 with 200 bars on November 20, 2008. Thresholds must be set for each length and each market.
How wide the disparity index swings, by length

- 5th percentile
- 95th percentile
Does it work?
Our bench tested zero-line crosses and fading the index at its own extremes across markets after costs (see our methodology): the crosses lagged the market, the bearish one by a small, fragile margin, but fading the extremes beat it in both directions. For a sell, that means the asset did worse than the other assets of its market over the same bars, even when it still rose. The results are in the section below. Separately, we measured the 14-bar index on the daily S&P 500 from January 1970 to October 2026, without dividends or costs. All days together were followed by a 20-day change of +0.73% on average, positive 61.4% of the time. On the 716 days at or below the 5th percentile, the next 20 days averaged +1.27% and were positive 58.5% of the time, with a much wider spread of outcomes: a standard deviation of 7.44%, against 4.44% for all days. On the 716 days at or above the 95th percentile, they averaged +1.19% and were positive 65.1% of the time.
S&P 500 change over the next 20 days, by disparity reading

On this one index, in absolute terms, stretches above the average were followed by further gains, not by pullbacks. Stretches below it were followed by larger average gains, but less often and with far more dispersion. Two cautions. The percentiles are taken over the whole history, which a trader in 1970 could not have known. And the 716 days come in clusters: stretched readings last several days in a row, and their 20-day windows overlap, so they hold far fewer independent episodes than 716, and a gap of 65.1% against 61.4% is weak evidence.
The disparity index is the moving average gap in percent: see our moving average guide. Related oscillators are the percentage price oscillator, which measures the gap between two averages, and the rate of change. All are listed on our page of momentum indicators.
Data from our test bench
Tested on our bench
We coded the 4 strategies taught on this page, buy and sell side, and ran them on stocks, ETFs, indices, forex, crypto and commodities. With all markets pooled (daily bars): 2 beat the market, 2 did worse than the market.
Disparity index(14) crosses 0, bullishLagged the market
Entry: Disparity index(14) closes above 0 after a close at or below it. Exit: Opposite signal (stop and reverse).
The trade itself made money on average, but less than the rest of the market over the same bars.
In detail, all markets pooled
On daily bars, the rule fired 620,670 times on 2,357 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 14 bars on each asset.
The average trade returned +0.29% before costs and the median trade −1.09%; 29% of trades made money, and the gains added up to 1.16 times the losses.
A trade lasted 4 bars at the median, half of them between 1 and 11 bars.
Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.19% per trade after costs (95% interval −0.23% to −0.16%).
- Signals
- 620,6702,357 assets, 1970 to 2026
- Average trade
- +0.29%before costs; median −1.09%
- Winning trades
- 29%profit factor 1.16
- Median hold
- 4 barshalf between 1 and 11
- Vs the market, after costs
- −0.19%95% interval −0.23% to −0.16%
After the signal, bar by bar
Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).
| Bars after | 1 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|
| After the signal | 49.9% | 51.7% | 52.0% | 53.3% | 54.4% |
| Random dates | 50.6% | 51.9% | 52.6% | 53.6% | 54.6% |
Over time
The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.
| Period | Signals | Vs market, before costs |
|---|---|---|
| 1970 to 2012 | 206,916 | −0.11% |
| 2012 to 2021 | 206,869 | −0.07% |
| 2021 to 2026 | 206,885 | −0.08% |
Stress tests
The same trades, measured again under harsher assumptions (vs market, after costs).
| Variant | Vs market | Result |
|---|---|---|
| As tested: entry at the signal close, standard costs | −0.19% | |
| Entry at the next bar's open | −0.22% | Holds |
| Trading costs doubled | −0.30% | Holds |
| 1% most extreme trades trimmed on each side | −0.32% | Holds |
With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 38% of 617,980 trades hit the target first, for +0.16 R per trade on average against +0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.
Worst single trade of the whole test: −63.3% on ONG/USDT, signal of 2021-05-20.
Real trades from the test
Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.




Market by market
| Market | Bars | Signals | Avg trade | Winners | Vs market, after costs | Result |
|---|---|---|---|---|---|---|
| Stocks | daily | 538,080 | +0.25% | 29% | −0.19% | Lagged the market |
| ETFs | daily | 18,827 | +0.18% | 31% | −0.08% | No edge found |
| Indices | daily | 9,514 | +0.39% | 33% | n/a | Not measured |
| Forex | daily | 6,568 | −0.01% | 27% | −0.05% | No edge found |
| Crypto | daily | 42,189 | +0.91% | 22% | −0.35% | No edge found |
| Commodities | daily | 5,492 | +0.21% | 29% | −0.18% | No edge found |
| All markets | 4-hour | 314,811 | −0.04% | 25% | −0.29% | Lagged the market |
| Forex | 4-hour | 37,801 | −0.01% | 27% | −0.04% | Inconclusive |
| Crypto | 4-hour | 277,010 | −0.04% | 24% | −0.32% | Lagged the market |
| All markets | weekly | 110,252 | +1.77% | 31% | −0.37% | Lagged the market |
| Stocks | weekly | 98,205 | +1.50% | 31% | −0.36% | Lagged the market |
| ETFs | weekly | 3,557 | +1.26% | 37% | −0.03% | No edge found |
| Indices | weekly | 1,938 | +1.79% | 37% | −0.16% | No edge found |
| Forex | weekly | 1,409 | −0.27% | 25% | −0.30% | Lagged the market |
| Crypto | weekly | 3,951 | +14.74% | 26% | n/a | Not measured |
| Commodities | weekly | 1,192 | +1.12% | 29% | −0.63% | No edge found |
Disparity index(14) crosses 0, bearishLagged the market, fragile
Entry: Disparity index(14) closes below 0 after a close at or above it. Exit: Opposite signal (stop and reverse).
In detail, all markets pooled
On daily bars, the rule fired 624,899 times on 2,359 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 14 bars on each asset.
The average trade returned −0.40% before costs and the median trade −1.25%; 24% of trades made money, and the gains added up to only 0.80 times the losses. For this sell signal, a trade gains when the price falls (a short sale).
A trade lasted 3 bars at the median, half of them between 1 and 9 bars.
Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.17% per trade after costs (95% interval −0.19% to −0.14%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.
- Signals
- 624,8992,359 assets, 1970 to 2026
- Average trade
- −0.40%before costs; median −1.25%
- Winning trades
- 24%profit factor 0.80
- Median hold
- 3 barshalf between 1 and 9
- Vs the market, after costs
- −0.17%95% interval −0.19% to −0.14%
After the signal, bar by bar
Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).
| Bars after | 1 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|
| After the signal | 47.6% | 47.4% | 46.6% | 46.0% | 45.5% |
| Random dates | 48.2% | 47.5% | 47.0% | 46.2% | 45.3% |
Over time
The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.
| Period | Signals | Vs market, before costs |
|---|---|---|
| 1970 to 2012 | 208,313 | −0.06% |
| 2012 to 2021 | 208,521 | −0.05% |
| 2021 to 2026 | 208,065 | −0.08% |
Stress tests
The same trades, measured again under harsher assumptions (vs market, after costs).
| Variant | Vs market | Result |
|---|---|---|
| As tested: entry at the signal close, standard costs | −0.17% | |
| Entry at the next bar's open | −0.13% | Does not hold |
| Trading costs doubled | −0.27% | Holds |
| 1% most extreme trades trimmed on each side | −0.18% | Holds |
The result no longer holds when entering at the next bar's open instead of the signal close.
With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 28% of 621,084 trades hit the target first, for −0.15 R per trade on average against −0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.
Worst single trade of the whole test: −385.7% on NU/USDT, signal of 2021-10-12.
Real trades from the test
Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.




Market by market
| Market | Bars | Signals | Avg trade | Winners | Vs market, after costs | Result |
|---|---|---|---|---|---|---|
| Stocks | daily | 540,884 | −0.48% | 23% | −0.16% | Lagged the market, fragile |
| ETFs | daily | 18,821 | −0.30% | 22% | −0.07% | No edge found |
| Indices | daily | 9,511 | −0.13% | 25% | n/a | Not measured |
| Forex | daily | 6,571 | −0.02% | 27% | −0.05% | No edge found |
| Crypto | daily | 43,599 | +0.48% | 33% | −0.36% | Inconclusive |
| Commodities | daily | 5,513 | −0.24% | 25% | −0.17% | No edge found |
| All markets | 4-hour | 316,988 | −0.08% | 27% | −0.28% | Lagged the market |
| Forex | 4-hour | 38,886 | −0.02% | 26% | −0.04% | Lagged the market |
| Crypto | 4-hour | 278,102 | −0.08% | 27% | −0.31% | Lagged the market |
| All markets | weekly | 113,394 | −1.71% | 21% | −0.24% | Lagged the market |
| Stocks | weekly | 100,628 | −1.84% | 21% | −0.22% | Lagged the market |
| ETFs | weekly | 3,582 | −0.95% | 20% | +0.01% | No edge found |
| Indices | weekly | 1,944 | −0.63% | 22% | −0.15% | No edge found |
| Forex | weekly | 1,408 | −0.27% | 25% | −0.25% | Inconclusive |
| Crypto | weekly | 4,643 | +0.12% | 38% | n/a | Not measured |
| Commodities | weekly | 1,189 | −1.07% | 22% | −0.64% | Inconclusive |
Disparity index at its own extreme, bullishBeat the market
Entry: Disparity(14) closes below the 5th percentile of its previous 500 bars. Exit: Disparity crosses 0.
In detail, all markets pooled
On daily bars, the rule fired 151,104 times on 2,177 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1972 and 2026, about once every 56 bars on each asset.
The average trade returned +1.29% before costs and the median trade +2.46%; 68% of trades made money, and the gains added up to 1.52 times the losses.
A trade lasted 9 bars at the median, half of them between 6 and 13 bars.
Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended +0.35% per trade after costs (95% interval +0.24% to +0.45%).
- Signals
- 151,1042,177 assets, 1972 to 2026
- Average trade
- +1.29%before costs; median +2.46%
- Winning trades
- 68%profit factor 1.52
- Median hold
- 9 barshalf between 6 and 13
- Vs the market, after costs
- +0.35%95% interval +0.24% to +0.45%
After the signal, bar by bar
Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).
| Bars after | 1 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|
| After the signal | 52.5% | 53.7% | 54.5% | 55.9% | 56.9% |
| Random dates | 50.7% | 52.0% | 52.7% | 53.8% | 54.9% |
Over time
The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.
| Period | Signals | Vs market, before costs |
|---|---|---|
| 1972 to 2011 | 50,567 | +0.63% |
| 2011 to 2020 | 50,293 | +0.21% |
| 2020 to 2026 | 50,244 | +0.52% |
Stress tests
The same trades, measured again under harsher assumptions (vs market, after costs).
| Variant | Vs market | Result |
|---|---|---|
| As tested: entry at the signal close, standard costs | +0.35% | |
| Entry at the next bar's open | +0.31% | Holds |
| Trading costs doubled | +0.25% | Holds |
| 1% most extreme trades trimmed on each side | +0.35% | Holds |
With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 38% of 150,266 trades hit the target first, for +0.17 R per trade on average against +0.17 R for the same trade at random dates of the same assets: no measurable difference from random dates.
Worst single trade of the whole test: −99.2% on CYN, signal of 2024-12-09.
Real trades from the test
Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.




Market by market
| Market | Bars | Signals | Avg trade | Winners | Vs market, after costs | Result |
|---|---|---|---|---|---|---|
| Stocks | daily | 133,807 | +1.17% | 68% | +0.31% | Beat the market |
| ETFs | daily | 4,696 | +1.05% | 72% | +0.37% | Beat the market |
| Indices | daily | 2,647 | +0.92% | 70% | n/a | Not measured |
| Forex | daily | 1,391 | +0.27% | 64% | +0.19% | Beat the market |
| Crypto | daily | 7,475 | +4.20% | 66% | +1.22% | Beat the market |
| Commodities | daily | 1,088 | +0.39% | 65% | −0.08% | No edge found |
| All markets | 4-hour | 75,170 | +0.81% | 64% | +0.20% | Beat the market |
| Forex | 4-hour | 9,455 | +0.04% | 63% | +0.02% | Inconclusive |
| Crypto | 4-hour | 65,715 | +0.92% | 64% | +0.23% | Beat the market |
| All markets | weekly | 21,249 | +4.80% | 74% | +0.75% | Beat the market |
| Stocks | weekly | 20,112 | +4.92% | 74% | +0.74% | Beat the market |
| ETFs | weekly | 572 | +3.37% | 76% | +0.74% | No edge found |
| Indices | weekly | 361 | +1.83% | 71% | +0.98% | Inconclusive |
| Forex | weekly | 86 | +1.71% | 72% | n/a | Not measured |
| Commodities | weekly | 118 | +2.41% | 70% | +3.01% | No edge found |
Disparity index at its own extreme, bearishBeat the market
Entry: Disparity(14) closes above the 95th percentile of its previous 500 bars. Exit: Disparity crosses 0.
The trade itself lost money on average: it only did better than the rest of the market, which moved against it even more.
In detail, all markets pooled
On daily bars, the rule fired 150,248 times on 2,186 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1972 and 2026, about once every 56 bars on each asset.
The average trade returned −0.11% before costs and the median trade +1.42%; 61% of trades made money, and the gains added up to only 0.96 times the losses. For this sell signal, a trade gains when the price falls (a short sale).
A trade lasted 10 bars at the median, half of them between 7 and 16 bars.
Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended +0.47% per trade after costs (95% interval +0.33% to +0.61%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.
- Signals
- 150,2482,186 assets, 1972 to 2026
- Average trade
- −0.11%before costs; median +1.42%
- Winning trades
- 61%profit factor 0.96
- Median hold
- 10 barshalf between 7 and 16
- Vs the market, after costs
- +0.47%95% interval +0.33% to +0.61%
After the signal, bar by bar
Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).
| Bars after | 1 | 3 | 5 | 10 | 20 |
|---|---|---|---|---|---|
| After the signal | 51.5% | 50.7% | 50.0% | 47.3% | 45.7% |
| Random dates | 48.0% | 47.2% | 46.7% | 45.8% | 44.8% |
Over time
The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.
| Period | Signals | Vs market, before costs |
|---|---|---|
| 1972 to 2011 | 50,232 | +1.03% |
| 2011 to 2020 | 49,964 | +0.39% |
| 2020 to 2026 | 50,052 | +0.27% |
Stress tests
The same trades, measured again under harsher assumptions (vs market, after costs).
| Variant | Vs market | Result |
|---|---|---|
| As tested: entry at the signal close, standard costs | +0.47% | |
| Entry at the next bar's open | +0.45% | Holds |
| Trading costs doubled | +0.37% | Holds |
| 1% most extreme trades trimmed on each side | +0.66% | Holds |
With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 27% of 149,396 trades hit the target first, for −0.17 R per trade on average against −0.18 R for the same trade at random dates of the same assets: no measurable difference from random dates.
Worst single trade of the whole test: −1,771.3% on FTM/USDT, signal of 2021-01-06.
Real trades from the test
Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.




Market by market
| Market | Bars | Signals | Avg trade | Winners | Vs market, after costs | Result |
|---|---|---|---|---|---|---|
| Stocks | daily | 133,255 | +0.08% | 61% | +0.50% | Beat the market |
| ETFs | daily | 4,980 | +0.03% | 59% | +0.25% | Beat the market |
| Indices | daily | 2,678 | −0.38% | 55% | n/a | Not measured |
| Forex | daily | 1,344 | +0.23% | 66% | +0.08% | No edge found |
| Crypto | daily | 6,847 | −4.17% | 66% | +0.04% | No edge found |
| Commodities | daily | 1,144 | +0.27% | 62% | +0.12% | No edge found |
| All markets | 4-hour | 74,908 | +0.59% | 69% | +0.50% | Beat the market |
| Forex | 4-hour | 9,467 | +0.05% | 63% | +0.01% | Inconclusive |
| Crypto | 4-hour | 65,441 | +0.66% | 70% | +0.57% | Beat the market |
| All markets | weekly | 22,082 | −1.36% | 60% | +1.50% | Beat the market |
| Stocks | weekly | 20,791 | −1.34% | 61% | +1.55% | Beat the market |
| ETFs | weekly | 689 | −1.33% | 53% | +0.53% | No edge found |
| Indices | weekly | 374 | −1.42% | 51% | +0.68% | No edge found |
| Forex | weekly | 79 | +1.05% | 75% | n/a | Not measured |
| Commodities | weekly | 149 | −6.51% | 46% | n/a | Not measured |
Each strategy enters at the close of the signal bar and exits at the exit it teaches, without a stop. The test compares the asset with an equal-weight basket of the other assets of its market over exactly the same bars, net of trading costs; for a sell signal, beating the market means the asset did worse than the others. A result is shown as beating or lagging the market only when it survives a correction for the number of tests and holds in both halves of the history; it is marked fragile when entering at the next open, doubling costs or trimming extreme trades removes it. Daily index bars are not compared with other indices, because their closes fall at different hours; “Not measured” also covers samples too small to test. Rules were fixed before any result was seen. How we test
Frequently asked questions
What is the disparity index formula?
(Close − moving average) / moving average × 100. With a close of 105 and an average of 100, the index is +5.
What is a good disparity index setting?
13 and 14 bars are the most common lookbacks. Longer averages give wider readings, so overbought and oversold thresholds must be set for each length and each market.
Is the disparity index the same as the kairi index?
Yes, when it is computed on a simple moving average. Kairi is the Japanese name, meaning roughly separation.
What is a disparity index strategy?
The usual one sells or buys when the index reaches an extreme for its market and length, betting on a return to the average. On the S&P 500 since 1970, the most stretched readings above the average were followed by gains more often than usual, so shorting them outright would usually have lost on this index. Across markets, our bench found that fading the extremes until the index crossed back through zero beat the market in both directions.
