Skip to main content
skill CX Codex

stockbee-20pct-study — Claude Code skill: what it does and install

Builds a structured model book of US equities moving 20% or more, tracks catalysts, and calculates multi-day forward outcomes for pattern research.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add tradermonty/claude-trading-skills --skill stockbee-20pct-study -a claude-code
Open on GitHub

What stockbee-20pct-study does

The run_20pct_study.py script captures US equities that gain or lose at least 20% within a chosen lookback window. It stores structured records into state/stockbee/20pct_study_events.jsonl alongside chart context and news catalysts. This is strictly a market research and model-book tool. It does not output buy or sell signals and cannot place broker orders.

The workflow covers five steps: scanning, catalyst enrichment, forward outcome tracking, cohort summaries, and historical backfills. It evaluates stock performance across 1, 3, 5, 10, and 20 days, recording MFE, MAE, and continuation returns. Historical backfills automatically flag survivorship bias unless an explicit survivorship-complete dataset is supplied.

You need Python 3.9+ and either an FMP API key or an offline daily OHLCV JSON file. If news data is missing, the tool logs the move as NO_CLEAR_NEWS, meaning you will have to categorize catalysts manually.

What it helps with

  • scan US equities moving plus or minus 20%
  • build a model book of explosive market movers
  • track forward return, MFE, and MAE across 1 to 20 days
  • group cohorts by catalyst type and technical close quality

Example prompts for the agent

  • Scan the US market for 20% movers over the last 5 days using run_20pct_study.py
  • Update forward outcomes for tracked events in state/stockbee/20pct_study_events.jsonl
  • Backfill 20% movers since 2020 using data/us_daily_ohlcv.json

How to install stockbee-20pct-study

1Skills CLI (Vercel)

npx skills add tradermonty/claude-trading-skills --skill stockbee-20pct-study -a claude-code

2Manually: put the files in place

~/.claude/skills/stockbee-20pct-study/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/stockbee-20pct-study/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about stockbee-20pct-study

How to install stockbee-20pct-study in Claude Code?

Run npx skills add tradermonty/claude-trading-skills --skill stockbee-20pct-study -a claude-code.

What does stockbee-20pct-study do?

It scans for US stocks moving 20% or more, classifies catalysts, logs events to a JSONL model book, and tracks forward returns across multiple time horizons.

Is an FMP API key required to run scans?

No, you can bypass live FMP scanning by providing local daily OHLCV JSON data via the --prices-json flag.

Source text

SKILL.md · MIT
---
name: stockbee-20pct-study
description: Build and maintain a Stockbee-style daily 20% mover study for US equities by scanning +20%/-20% movers, classifying catalysts and setup context, updating forward outcomes, and summarizing cohort patterns. Use when the user asks to run a daily 20% study, backfill historical 20% movers, find recurring edge patterns, or build a model book of explosive market moves.
---

# Stockbee 20% Study

Build a daily event study of US equities that moved +20% or -20% over a defined window. Convert large movers into structured study records, classify the catalyst and chart context, update forward outcomes, and summarize recurring patterns for research.

This skill is a research, model-book, and setup-fluency workflow. It does not generate buy/sell signals, place orders, or output broker execution instructions.

## When to Use

- User wants to run a Stockbee-style daily 20% mover study
- User asks which stocks moved +20% or -20% today, this week, or over a configurable lookback window
- User wants to backfill historical 20% movers and study what happened next
- User wants to identify continuation, reversal, exhaustion, or theme-cluster patterns
- User wants to build a model book of explosive winners, major failures, and failed low-quality pops
- User wants edge hints for downstream strategy research rather than immediate trade signals

## Prerequisites

- Python 3.9+
- FMP API key for live US universe scans, or offline OHLCV JSON via `--prices-json`
- Optional structured news/catalyst JSON for higher-quality catalyst classification
- Recommended market regime artifact from `market-regime-daily`
- Recommended local state path: `state/stockbee/20pct_study_events.jsonl`

## Workflow

### Step 1: Scan for 20% Movers

Run after the US market close, or against the latest complete daily bar in an offline OHLCV file.

```bash
python3 skills/stockbee-20pct-study/scripts/run_20pct_study.py scan \
  --fmp-universe \
  --max-symbols 300 \
  --as-of 2026-06-28 \
  --lookback-days 5 \
  --min-abs-return-pct 20 \
  --min-price 5 \
  --min-dollar-volume 20000000 \
  --include-down-movers \
  --state-file state/stockbee/20pct_study_events.jsonl \
  --output-dir reports/
```

Use offline data instead of FMP:

```bash
python3 skills/stockbee-20pct-study/scripts/run_20pct_study.py scan \
  --prices-json data/us_daily_ohlcv.json \
  --as-of 2026-06-28 \
  --lookback-days 5 \
  --include-down-movers \
  --state-file state/stockbee/20pct_study_events.jsonl \
  --output-dir reports/
```

### Step 2: Enrich and Classify Events

Use structured catalyst data when available. The enrichment step is best-effort: if no news record is found, the event remains a price-only `NO_CLEAR_NEWS` study record.

```bash
python3 skills/stockbee-20pct-study/scripts/run_20pct_study.py enrich \
  --events-json reports/stockbee_20pct_events_YYYY-MM-DD_HHMMSS.json \
  --news-json data/catalysts_YYYY-MM-DD.json \
  --market-regime reports/market_regime_latest.json \
  --state-file state/stockbee/20pct_study_events.jsonl \
  --output-dir reports/
```

### Step 3: Update Matured Forward Outcomes

Update 1-day, 3-day, 5-day, 10-day, and 20-day forward outcomes after enough future bars exist.

```bash
python3 skills/stockbee-20pct-study/scripts/run_20pct_study.py update-outcomes \
  --prices-json data/us_daily_ohlcv.json \
  --state-file state/stockbee/20pct_study_events.jsonl \
  --horizons 1,3,5,10,20 \
  --output-dir reports/
```

The update records close return, MFE, MAE, direction-adjusted continuation return, and outcome tags.

### Step 4: Summarize Cohorts

```bash
python3 skills/stockbee-20pct-study/scripts/run_20pct_study.py summarize \
  --state-file state/stockbee/20pct_study_events.jsonl \
  --group-by direction,catalyst.label,technical_context.pattern_label,technical_context.close_quality \
  --min-sample 10 \
  --output-dir reports/
```

Treat `rule_candidates` and exported edge hints as research prompts. Require representative chart review, sample-size thresholds, and out-of-sample validation before changing trade rules.

### Step 5: Historical Backfill

```bash
python3 skills/stockbee-20pct-study/scripts/run_20pct_study.py backfill \
  --from 2020-01-01 \
  --to 2026-06-28 \
  --prices-json data/us_daily_ohlcv.json \
  --min-abs-return-pct 20 \
  --include-down-movers \
  --state-file state/stockbee/20pct_study_events.jsonl \
  --output-dir reports/
```

Backfill records are marked `CURRENT_UNIVERSE_BACKFILL_SURVIVORSHIP_BIAS` by default. Add `--survivorship-complete` only when the supplied OHLCV includes delisted symbols and historical universe coverage.

## Output Format

- `stockbee_20pct_events_YYYY-MM-DD_HHMMSS.json` — scan metadata and event records
- `stockbee_20pct_daily_report_YYYY-MM-DD_HHMMSS.md` — human-readable daily 20% study report
- `stockbee_20pct_enriched_YYYY-MM-DD_HHMMSS.json` — enriched event records
- `stockbee_20pct_outcome_update_YYYY-MM-DD_HHMMSS.json/md` — matured forward outcome update
- `stockbee_20pct_cohort_summary_YYYY-MM-DD_HHMMSS.json/md` — cohort statistics and rule candidates
- `stockbee_20pct_edge_hints_YYYY-MM-DD_HHMMSS.yaml` — edge-hint export for downstream research skills
- `state/stockbee/20pct_study_events.jsonl` — durable 20% mover model book

## Resources

- `references/methodology.md` — 20% study methodology and review checklist
- `references/event_schema.md` — JSONL event record schema
- `references/catalyst_taxonomy.md` — catalyst and risk label definitions
- `references/scoring_system.md` — event quality and study priority scoring
- `references/cohort_mining_rules.md` — overfitting controls and sample-size rules
- `scripts/run_20pct_study.py` — CLI for scan, enrich, update-outcomes, summarize, and backfill

© tradermonty · MIT · tradermonty/claude-trading-skills

Similar skills

Everything for Finance and business →

From the same set73

weekly-performance-digest Computes weekly metrics from closed trader-memory-core theses: win rate, expectancy, R-multiples, and MAE/MFE. Outputs Markdown and JSON reports completely offline. CX Codex +1 2,700installs drawdown-circuit-breaker A skill that reads your trader-memory-core trade log and decides whether new trade risk is allowed today, using daily loss limits, losing streaks and weekly or monthly drawdown. CX Codex +1 2,700installs pre-trade-discipline-gate Scores a local pre-trade checklist before manual order entry and blocks planless, oversized, or revenge-risk entries. CX Codex +1 2,700installs stockbee-momentum-burst-screener Screens US stocks for Pradeep Bonde momentum burst setups using 4% breakouts and range expansion. Built for finding short-term 3-5 day swing candidates. CX Codex +1 2,700installs stockbee-exhaustion-hammer-screener This skill screens US stocks for Stockbee-style selling-exhaustion hammers. Use it to build candidates for manual trade review. CX Codex +1 2,600installs stockbee-setup-fluency-trainer Turns Stockbee Momentum Burst screener candidates into a study model book and fills in 3-day and 5-day outcomes. CX Codex +1 2,600installs stockbee-episodic-pivot-analyzer Evaluates Day 1 Episodic Pivot setups using Stockbee criteria. It pairs corporate catalysts with volume shocks and opening range price expansion. CX Codex +1 2,600installs fxmacrodata-calendar Pulls official FXMacroData release dates so a trade plan can pause entries ahead of CPI, NFP or a central-bank decision. CX Codex +1 2,500installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor