SuperAPI AI Directory

sentiment-reality-gap

General & other

View repository

Updated 10-15 21:50

About this skill

Market Sentiment and Fundamental Deviation Analyzer

Act as a contrarian investment analyst. Identify stocks in the A-share market that have been heavily sold off or negatively covered but whose fundamentals remain strong — look for investment opportunities where the gap between sentiment and reality is the largest.

Workflow

Step 1: Determine the scope of analysis

Confirm with the user:

  1. Scan scope — Whole market, specific Shenwan industries, index constituents (CSI 300/CSI 500/ChiNext Index)
  2. Decline threshold — Default: decline of ≥20% over the past 6 months or significant underperformance versus the industry index
  3. Number of results — Default: 5
  4. Exclusion conditions — Whether to exclude specific sectors (such as ST stocks, recently listed stocks)

Step 2: Identify negative sentiment signals

Scan for stocks that meet the following conditions. For detailed methods, see references/gap-analysis-methodology.md。

Sentiment indicator Measurement method
Stock price performance Decline over the past 6 months, excess decline relative to the industry index
Analyst revisions Earnings forecast downgrades and rating downgrades over the past 3 months
Northbound capital Net outflow over the past 3 months
Margin balance Decline in margin balance
Media/public opinion Number of negative reports, sentiment on Xueqiu/stock forums
Institutional holdings Public mutual funds reducing holdings for two consecutive quarters

Step 3: Verify fundamentals

Verify fundamental strength one by one for stocks with negative sentiment:

Fundamental check Criteria
Revenue trend Year-over-year revenue growth over the past 4 quarters is positive or stabilizing
Profitability Non-recurring net profit is positive and the trend is improving
Cash flow Net cash flow from operating activities is positive
Balance sheet Debt-to-asset ratio is manageable, with no risk of a debt crisis
Industry position Industry ranking is stable or improving
Competitive advantage The moat has not been substantially weakened

Step 4: Classify the nature of the problem

Determine whether the problem causing the negative sentiment istemporaryorstructural:

Type Characteristics Investment implication
Temporary Single-quarter earnings fluctuations, short-term policy disruptions, bottom of the industry cycle, transition period of management changes May be a buying opportunity
Structural Permanent industry decline, technology route obsolescence, fundamental collapse of the business model, continuous deterioration of governance Undervaluation may be justified, avoid
Uncertain Evidence is insufficient to distinguish Keep watching, do not include in recommendations

Step 5: Quantify the valuation gap

Indicator Calculation Method
Current Valuation vs Historical Average Deviation of rolling PE/PB relative to its own 5-year median
Current Valuation vs Industry Peers Discount relative to industry median
Implied Growth Rate Future earnings growth rate implied by current valuation vs actual consensus expectations
Margin of Safety Current price vs conservative valuation floor

Step 6: Ranking and Presentation

Based onSentiment-Fundamental Deviationranking (worse sentiment + better fundamentals = higher ranking). For report format, see references/output-template.md。

Data Enhancement

If real-time market data is needed to support the analysis, please useFinancial Data Toolkitskill (findata-toolkit-cn). This toolkit provides A-share real-time quotes, financial indicators, director/supervisor/senior management increases and decreases in holdings, northbound capital, macroeconomic data, and other functions. All data sources are free and require no API key.

Important Notes

  • Intellectual Honesty: Do not be contrarian for the sake of being contrarian. If the analysis shows that "the undervaluation is reasonable," state it candidly.
  • Distinguish Misjudgment from Traps: The A-share market has large sentiment swings, but there are also genuine value traps. Maintain balance between "the market is wrong" and "the market knows something you don't."
  • The Judgment of the Nature of Policy Is Crucial: Many declines in A-shares are policy-driven (such as the education double reduction, internet antitrust, and real estate regulation). Policy-related issues require special judgment: whether the policy is a permanent change to the industry landscape or a phased adjustment.
  • Catalysts Are Very Important: A margin of safety alone is not enough — it is also necessary to identify catalysts that may trigger a return to value (earnings inflection point, policy shift, industry bottoming).
  • Risk/Reward Asymmetry: Prioritize finding asymmetric opportunities with "limited downside and significant upside."
  • Time Cost: Contrarian investing may require a relatively long waiting period. Even if the analysis is correct, the market may take 6–18 months to correct the pricing.
  • A-share Sentiment Cycles Are Short: A-shares have a high proportion of retail investors, sentiment cycles are shorter, mispricing may be more frequent, but corrections may also be faster.