New to Claude Skills? Learn how to install them →

tradermonty on GitHub

Earnings Trade Analyzer

Free

Efficiently score and analyze post-earnings stock reactions.

Get this skill

Free · Opens the source repo

What Earnings Trade Analyzer does

The Earnings Trade Analyzer provides a systematic approach to evaluating stocks after earnings announcements by utilizing a 5-factor scoring methodology. This tool is designed for traders and investors looking to identify potential momentum trades based on the strongest earnings reactions. The scoring system includes factors such as Gap Size, Pre-Earnings Trend, Volume Trend, and positions relative to the 200-day and 50-day moving averages. By scoring stocks from 0 to 100 and assigning letter grades (A/B/C/D), users can quickly assess which stocks are worth further consideration.

To use the Earnings Trade Analyzer, users will need to set up an API key from Financial Modeling Prep (FMP) and execute the provided Python scripts. The default configuration analyzes the last two days of earnings, but users can customize parameters such as lookback days and market cap filters to refine their analysis. The output includes both structured JSON files and human-readable Markdown reports, allowing for easy interpretation of results.

This skill is particularly useful for traders focused on post-earnings momentum or those looking to screen for stocks that have reacted strongly to earnings announcements. By focusing on Grade A and B stocks, users can identify actionable setups that may lead to profitable trades. The tool also provides guidance on how to interpret scores and grades, helping users make informed decisions based on the analysis.

Overall, the Earnings Trade Analyzer is a valuable tool for anyone involved in trading or investing in stocks, particularly those who want to leverage earnings announcements to inform their trading strategies.

When to use it

Use this tool when analyzing stocks after earnings announcements or when looking for potential momentum trades based on earnings reactions.

When not to use it

This skill may not be suitable for users who require real-time trading signals or those not focused on earnings-related trading strategies.

What you can build with it

Post-Earnings Trade Analysis

Use the Earnings Trade Analyzer to evaluate stocks after earnings announcements and identify potential momentum trades.

Screen for Strong Earnings Reactions

Employ the scoring system to find stocks that have reacted positively to earnings, focusing on Grade A and B candidates.

Market Cap Filtering

Customize the analysis to filter stocks by market cap, ensuring that only relevant candidates are considered for trading.

How to install Earnings Trade Analyzer

View source

1. Install with the skills CLI

npx skills add tradermonty/claude-trading-skills/earnings-trade-analyzer --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by tradermonty

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_KEY environment 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/

Degraded endpoint / budget fallback for scheduled reviews

If the analyzer reports a 404, an implausible empty earnings calendar, or exhausts its API-call budget before producing scored candidates during a scheduled after-close/pre-market run, do not report "no earnings reactions" immediately.

  1. First retry once with a narrower liquid-universe configuration so the full 5-factor scorer has a chance to complete, for example:
python3 skills/earnings-trade-analyzer/scripts/analyze_earnings_trades.py \
  --lookback-days 2 \
  --min-market-cap 5000000000 \
  --top 20 \
  --max-api-calls 600 \
  --output-dir reports/<routine-date>
  1. If the scored run still returns no candidates or cannot complete, verify the same range through the stable endpoint used by the compatibility shim and clearly label the result as an ungraded fallback:
curl "https://financialmodelingprep.com/stable/earnings-calendar?from=YYYY-MM-DD&to=YYYY-MM-DD&apikey=$FMP_API_KEY"

Then optionally enrich returned US tickers through the analyzer's stable-first FMP client or per-symbol /stable/quote?symbol=<ticker> calls to rank by same-day changesPercentage, market cap, and liquidity. Use legacy /api/v3 quote calls only as a legacy-key fallback after stable has failed. Present these as preliminary / ungraded reactions because the 5-factor scorer did not run; do not assign A/B/C/D grades from the fallback alone.

No-candidate output pitfall: The analyzer may print Candidates after filtering: 0 / No candidates found matching criteria. and exit successfully without writing an earnings_trade_analyzer_*.json file. In that case, do not try to run PEAD Mode B from a nonexistent candidate file. Say explicitly that no scored analyzer JSON was produced, run the endpoint/quote enrichment fallback above if the routine needs an earnings section, and label any names as manual-review only.

Step 2: Review Results

  1. Read the generated JSON and Markdown reports
  2. Load references/scoring_methodology.md for scoring interpretation context
  3. 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

Frequently asked questions about Earnings Trade Analyzer

Similar skills