Earnings trade analyzer
Skill xonevn-ai/xone-trading-skills/skills/earnings-trade-analyzer
Analyze recent post-earnings stocks using a 5-factor scoring system (Gap Size, Pre-Earnings Trend, Volume Trend, MA200 Position, MA50 Position). Scores each stock 0-100 and assigns A/B/C/D grades. Use when user asks about earnings trade analysis, post-earnings momentum screening, earnings gap scoring, or finding best recent earnings reactions.From its SKILL.md
npx -y skills add xonevn-ai/xone-trading-skills --skill earnings-trade-analyzerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- reads credentialsReads from 1 credential source: `FMP_API_KEY`.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 3 commands, including `python3 skills/earnings-trade-analyzer/scripts/analyze_earnings_trades.py --output-dir reports/` and 2 more.
SKILL.md
2.9 KB, 626 tokens by cl100k_base, as published. Nobody here has run it
Earnings Trade Analyzer - Post-Earnings 5-Factor Scoring
Analyze recent post-earnings stocks using a 5-factor weighted scoring system to identify the strongest earnings reactions for potential momentum trades.
When to Use
- User asks for post-earnings trade analysis or earnings gap screening
- User wants to find the best recent earnings reactions
- User requests earnings momentum scoring or grading
- User asks about post-earnings accumulation day (PEAD) candidates
Prerequisites
- FMP API key (set
FMP_API_KEYenvironment variable or pass--api-key) - Free tier (250 calls/day) is sufficient for default screening (lookback 2 days, top 20)
- Paid tier recommended for larger lookback windows or full screening
Workflow
Step 1: Run the Earnings Trade Analyzer
Execute the analyzer script:
# Default: last 2 days of earnings, top 20 results
python3 skills/earnings-trade-analyzer/scripts/analyze_earnings_trades.py --output-dir reports/
# Custom lookback and market cap filter
python3 skills/earnings-trade-analyzer/scripts/analyze_earnings_trades.py \
--lookback-days 5 \
--min-market-cap 1000000000 \
--top 30 \
--output-dir reports/
# With entry quality filter
python3 skills/earnings-trade-analyzer/scripts/analyze_earnings_trades.py \
--apply-entry-filter \
--output-dir reports/
Step 2: Review Results
- Read the generated JSON and Markdown reports
- Load
references/scoring_methodology.mdfor scoring interpretation context - Focus on Grade A and B stocks for actionable setups
Step 3: Present Analysis
For each top candidate, present:
- Composite score and letter grade (A/B/C/D)
- Earnings gap size and direction
- Pre-earnings 20-day trend
- Volume ratio (20-day vs 60-day average)
- Position relative to 200-day and 50-day moving averages
- Weakest and strongest scoring components
Step 4: Provide Actionable Guidance
Based on grades:
- Grade A (85+): Strong earnings reaction with institutional accumulation - consider entry
- Grade B (70-84): Good earnings reaction worth monitoring - wait for pullback or confirmation
- Grade C (55-69): Mixed signals - use caution, additional analysis needed
- Grade D (<55): Weak setup - avoid or wait for better conditions
Output
earnings_trade_analyzer_YYYY-MM-DD_HHMMSS.json- Structured results with schema_version "1.0"earnings_trade_analyzer_YYYY-MM-DD_HHMMSS.md- Human-readable report with tables
Resources
references/scoring_methodology.md- 5-factor scoring system, grade thresholds, and entry quality filter rules
What ships with it: 14 files
103.2 KB alongside SKILL.md, 13 of them executable
references/
- scoring_methodology.md3.8 KB
scripts/
- analyze_earnings_trades.pyruns13.6 KB
- calculators/gap_size_calculator.pyruns4.6 KB
- calculators/__init__.pyruns38 B
- calculators/ma200_calculator.pyruns2.4 KB
- calculators/ma50_calculator.pyruns2.2 KB
- calculators/pre_earnings_trend_calculator.pyruns3.0 KB
- calculators/volume_trend_calculator.pyruns3.7 KB
- fmp_client.pyruns13.3 KB
- report_generator.pyruns8.7 KB
- scorer.pyruns3.9 KB
- tests/conftest.pyruns307 B
- tests/test_earnings_trade_analyzer.pyruns41.0 KB
- tests/test_fmp_client_historical.pyruns2.6 KB