news-sentiment-research

Backtests news sentiment signals from RSS articles against A-share price data to produce research reports.

1.5k|337|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/qusong0627/QuantMind --skill news-sentiment-research-qusong0627
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: news-sentiment-research
Source: https://github.com/qusong0627/QuantMind/tree/main/skills/news-sentiment-research
Command: npx skills add https://github.com/qusong0627/QuantMind --skill news-sentiment-research-qusong0627

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, pyarrow, psycopg2, sqlalchemy, and includes scripts (resource) components.

What problem does it solve? It turns raw RSS news archives into statistically validated trading signals by running event studies, multi-dimensional pattern analysis, and optimized backtests on Chinese A-share news sentiment data. ## Core Features & Use Cases - Event Study Analysis: Measures average cumulative returns and win rates from T+0 to T+20 after bullish/bearish news, segmented by signal strength and board (main board, ChiNext, STAR). - Seven-Dimension Pattern Mining: Analyzes source predictiveness, publication hour, multi-article confirmation, first-day momentum, sentiment reversal, event tags, and consecutive signals to extract actionable rules. - Optimized Strategy Backtesting: Combines source whitelists, time filters, momentum confirmation, trailing take-profit, and winner-holding extensions into an ablation-ready backtest engine with MD/PDF research report output. - Use Case: A quant researcher asks which news sources actually predict stock moves; the skill runs the deep-analysis script over 42万 Huntly articles and returns ranked source predictiveness plus a validated trading strategy. ## Quick Start Ask the assistant to run a news sentiment event study and optimized backtest on the Huntly news archive and generate the research report as Markdown and PDF.

Frequently Asked Questions about news-sentiment-research

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I backtest a news sentiment trading strategy on A-shares?

Run the backtest scripts inside the quantmind Docker container, which load enriched sentiment from PostgreSQL, timestamps from Huntly SQLite, and forward-adjusted daily klines from QuantDB parquet. The optimized script supports toggles for source filtering, time filtering, multi-article confirmation, and momentum filters.

What data sources are needed for news sentiment event studies?

Three sources are joined: Huntly SQLite for article timestamps and source names, a PostgreSQL news_article_enrichment table for tickers, sentiment labels, scores and event tags, and QuantDB parquet files for daily prices and the trading calendar.

Why does the backtest disable fixed stop-losses?

Testing showed fixed stop-loss exits had 0% win rate because news-driven moves typically dip before rallying. The strategy instead uses a trailing take-profit activated above 15% gain with a 5% drawdown exit, which was the only profitable exit mechanism.

Can the scripts run outside the Docker container?

No. The scripts import pandas, numpy, psycopg2, sqlalchemy and internal backend packages that only exist in the quantmind container. They must be executed via docker exec, while pure standard-library scripts may run locally.

What are the limitations of news sentiment signals for trading?

Bullish news effects decay within about 15 trading days and are strongest in T+1 to T+3. Some sources are reverse indicators, ChiNext bearish signals were ineffective, and results depend on the data snapshot since the enrichment table updates continuously.