How the A-share index is calculated
The index has 6 components. Each one is scored from 0 to 100 and the final value is their average:
- Momentum: the Shanghai Composite’s distance from its 125-day moving average. The further above, the higher the score.
- Price strength: where the Shanghai Composite sits between its 52-week high and low.
- Volatility: the 20-day annualized volatility of the CSI 300. Higher volatility means a lower score.
- Turnover: the Shanghai market’s 20-day average turnover divided by its 120-day average.
- Risk appetite: the 20-day return of the ChiNext index minus that of the CSI 300. When money chases growth stocks, the score is high.
- Margin sentiment: the 20-day change in Shanghai Stock Exchange margin debt. Rising leverage means a high score.
Scoring: each component is the percentile rank of today’s value over the last 500 trading days. If today’s momentum is stronger than 80% of days in the past two years, it scores 80. Percentiles need no hand-picked thresholds and adapt automatically when the market changes character.
Index ranges
- 0 to 24: Extreme Fear
- 25 to 46: Fear
- 47 to 54: Neutral
- 55 to 75: Greed
- 76 to 100: Extreme Greed
Data sources and updates
Daily data for the Shanghai Composite, CSI 300 and ChiNext comes from East Money, and margin debt from the Shanghai Stock Exchange. During trading hours the index uses the latest quotes and is fixed after the close. Margin debt updates every trading day in the evening (UTC+8).
Limits of this index
This is an index I designed myself, not official data, and it will differ from sentiment gauges published by other institutions. It measures how hot or cold the market is relative to the last two years, not absolute valuation. A long stretch in extreme fear shows gloomy sentiment, not an imminent rebound.
No. Dabai Ketang calculates it from public market data, and the full method is on this page so anyone can reproduce it.
A-share turnover and margin debt change scale every few years, so fixed thresholds stop working quickly. A percentile only looks at where today’s value sits within the last two years, so the parameters never need retuning.
Same idea, different components. The A-share version adds turnover and margin debt, which fit a market driven mainly by retail traders and leverage. See the US stock fear and greed index for the US version.
