Screens S&P 500 or US-listed stocks for Mark Minervini's Volatility Contraction Pattern (VCP), including relaxed VCP, cup-with-handle, and short-base setups. Identifies Stage 2 uptrend stocks with contracting volatility near breakout pivot points. Supports historical single-ticker VCP detection with forward-outcome stats.
Ships in tradermonty-claude-trading-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Screen S&P 500 stocks for Mark Minervini's Volatility Contraction Pattern (VCP), identifying Stage 2 uptrend stocks with contracting volatility near breakout pivot points.
--history --ticker SYM)FMP_API_KEY environment variable or pass --api-key)docs/en/getting-started.md#fmp-plans)--full-sp500)--universe-us screens US-listed common stocks and ADRs (NYSE, NASDAQ, AMEX; price > $10,
daily volume > 200,000) from the FMP stable/company-screener endpoint, about 2,300 names.
It analyzes every pre-filter pass: about 2,300 API calls and 10-15 minutes per run. Use it
when mid and small caps (outside the S&P 500) should be included. If the plan does not
serve the endpoint, the run exits with an error that suggests --full-sp500 or --universe.Run the VCP screener script:
# Default: S&P 500, top 100 candidates
python3 skills/vcp-screener/scripts/screen_vcp.py --output-dir skills/vcp-screener/scripts
# Custom universe
python3 skills/vcp-screener/scripts/screen_vcp.py --universe AAPL NVDA MSFT AMZN META --output-dir skills/vcp-screener/scripts
# Full S&P 500 (paid API tier)
python3 skills/vcp-screener/scripts/screen_vcp.py --full-sp500 --output-dir skills/vcp-screener/scripts
# US-listed common stocks and ADRs (about 2,300 API calls)
python3 skills/vcp-screener/scripts/screen_vcp.py --universe-us --output-dir reports/
Only return stocks with valid_vcp=True AND execution_state in (Pre-breakout, Breakout):
python3 skills/vcp-screener/scripts/screen_vcp.py --strict --output-dir reports/
Walk one ticker's multi-year history, detect every VCP that ever formed, and attach forward-outcome stats (breakout / stop-hit / timeout, days-to-outcome, max gain, max loss) per detection. Useful for pattern study and backtesting context — not a real-time screener.
# Default: scan ~5 years (1260 trading days), 5-day stride, 60-day outcome window
python3 skills/vcp-screener/scripts/screen_vcp.py \
--history --ticker FIX --output-dir reports/
# Custom scan length: 750 trading days (~3 years), 90-day outcome window
python3 skills/vcp-screener/scripts/screen_vcp.py \
--history 750 --ticker TSLA \
--stride-days 5 --outcome-days 90 \
--output-dir reports/
# Long scan: 10 years (2520 trading days)
python3 skills/vcp-screener/scripts/screen_vcp.py \
--history 2520 --ticker NVDA --output-dir reports/
Outputs (timestamped):
vcp_history_<SYM>_<YYYY-MM-DD_HHMMSS>.json — timeline of detections with full
analyzer payload + forward_outcome per detection + summary stats.vcp_history_<SYM>_<YYYY-MM-DD_HHMMSS>.md — human-readable timeline.Mode-specific flags:
| Parameter | Default | Range | Effect |
|---|---|---|---|
--history [DAYS] | (off) / 1260 if bare | 100-5040 | Enable historical mode; optionally specify trading-day scan window (requires --ticker) |
--ticker SYM | — | — | Ticker to scan |
--stride-days | 5 | 1-60 | Trading-day step between as-of cursor positions |
--outcome-days | 60 | 5-252 | Forward window evaluated per detection |
Notes:
marketCap and absolute RS percentile reflect the ticker in isolation,
not against the live screening universe — use this report for pattern
study, not portfolio sizing.(T1_high_date, last_low_date, pivot) so
the same VCP isn't reported repeatedly as the cursor ages.Adjust VCP detection parameters for research and backtesting:
python3 skills/vcp-screener/scripts/screen_vcp.py \
--min-contractions 3 \
--t1-depth-min 12.0 \
--breakout-volume-ratio 2.0 \
--trend-min-score 90 \
--atr-multiplier 1.5 \
--output-dir reports/
| Parameter | Default | Range | Effect |
|---|---|---|---|
--min-contractions | 2 | 2-4 | Higher = fewer but higher-quality patterns |
--t1-depth-min | 10.0% | 1-50 | Higher = excludes shallow first corrections |
--breakout-volume-ratio | 1.5x | 0.5-10 | Higher = stricter volume confirmation |
--trend-min-score | 85 | 0-100 | Higher = stricter Stage 2 filter |
--atr-multiplier | 1.5 | 0.5-5 | Lower = more sensitive swing detection |
--contraction-ratio | 0.70 | 0.1-1 | Lower = requires tighter contractions |
--min-contraction-days | 5 | 1-30 | Higher = longer minimum contraction |
--lookback-days | 120 | 30-365 | Longer = finds older patterns |
--max-sma200-extension | 50.0% | — | SMA200 distance threshold for Overextended state and penalty |
--wide-and-loose-threshold | 15.0% | — | Final contraction depth above which wide-and-loose flag triggers |
--strict | off | — | Minervini strict mode: only Pre-breakout or Breakout with valid VCP |
references/vcp_methodology.md for pattern interpretation contextreferences/scoring_system.md for score threshold guidanceFor each top candidate, present:
composite_score / rating) — how well-formed is the VCP pattern?execution_state) — is it buyable now? (Pre-breakout / Breakout = actionable)pattern_type) — Textbook VCP / VCP-adjacent / Post-breakout / Extended Leader / Damaged★ marker if a State Cap was applied (raw score was downgraded)Setup candidates (broader tier). Each analysis also carries setup_candidate:
candidate, setup_type (vcp, cup_with_handle or short_base), entry_zone (pivot, handle,
cheat, low_cheat), pivot_price, distance_to_pivot_pct, vcp_traits (contraction
count, depths, footprint such as 8W 21/4 3T), cup, short_base and young_stock. The
tier is wider than valid_vcp: a relaxed VCP, a cup with handle / cheat pause, or a short
base after a power move (8-21 bars from the base high, >= 20% advance into it from the low of
the 40 bars before it, drawdown <= 20%, volume drying up in the newer half, close above the
50-day MA) whose
close is within -8% to +3% of its pivot. The short base is tried only when neither longer
base is at its pivot. Present it as a watchlist ("bases at their pivot"), separately
from strict VCPs, and never as a buy signal on its own. Load
references/minervini_setup_taxonomy.md to explain the setup names. The tier does not
change valid_vcp, the composite score or the execution state.
Setup-candidate order and focus. In a screening run the tier is ordered by the mean of
three percentile ranks among the day's candidates: the 12-month (252-session) return minus
SPY's, 50-day average dollar volume, and volume dry-up (10-day / 50-day mean volume, smaller
first); a value that cannot be computed takes the middle rank. A candidate is marked focus
when its 12-month RS is in the top half of the day's candidates (a missing value never is),
its close is within -5% to +3% of the pivot, and its base is at most 8% deep (cup pause,
final VCP contraction, or short-base drawdown), so the stop can sit close. setup_candidate
carries rank, rank_score, dollar_volume_50d, rs_126_vs_spy, rs_252_vs_spy,
volume_dryup, base_depth_pct and focus; non-candidates and single-stock analyses carry
them as null. The report shows a "Focus List" before the full setup table. Validation
(research, 2014-2021 candidate universes): on periods not used to choose the rule, the focus
condition kept about a third of the candidates and 13 of 17 Minervini entries (about 6.4
expected by chance); on the period used to choose the ordering it kept 21 of 37. Present the
focus list as the names to read first, never as a buy signal.
Breakouts today. Each analysis also carries early_entry and breakout_today, both
judged on the newest bar against levels known the day before:
early_entry: the close clears the high of the shortest tight pause in the prior 3-10
sessions (range <= 8%, pause volume <= the 50-day average) on volume >= 1.4x the 50-day
average, close above the 50-day MA. Fields: triggered_today, pause_high, pause_days,
pause_volume_ratio, trigger_volume_ratio, data_available.breakout_today: the close clears yesterday's setup-candidate pivot on volume >= 1.4x.
Fields: triggered_today, pivot_price, setup_type, volume_ratio.
The Markdown report lists these names under "Breakouts Today" (with a Finviz link, also
finviz_urls.breakouts_today in JSON). They often drop out of the setup table on the
breakout day because they close above its band. Validation: across 132 judgeable Minervini
entries (2010-2026) the early trigger fired within one session of 52 entries versus about
9.6 expected by chance on the same stocks' uptrend days. That shows his buys cluster on such
days; post-breakout performance was not measured. Malformed bars in the window make the
trigger unavailable (not triggered) instead of guessing.Finviz links. The JSON report has finviz_urls with strict_vcp (score order) and
setup_candidates (rank order) lists of chart-view screener URLs, split into 50 symbols
per URL. The Markdown report lists them under "Finviz Charts" and the console prints
them. Offer these links so the user can check the charts.
By Execution State (primary filter):
By Rating (secondary, after state confirms actionability):
VCP detection requires actual positive, finite, non-boolean high, low and close
observations on every bar of its selected lookback window. Missing highs/lows
are not synthesized from closes, and missing bars are not dropped or compressed.
Invalid observations return data_available: false, dated data_gaps, and an
error; the internal zero score is an unavailable placeholder, not a measured
absence of a pattern. Such analyses do not enter composite ranking. The current
screening pipeline records failed evaluation through its coverage reporting.
Apply the same shared validation to RS return endpoints (stock and benchmark),
Trend Template moving-average windows, consumed volume averages/contraction zones
and price comparisons, and the stale-price window. Close-based components may use
adjClose only when close is absent, never to replace an explicitly invalid
close. Finite zero volume is valid; zero/negative prices are not. Quote liquidity
keeps the existing avgVolume-or-session-volume selection (including the session
fallback for zero average volume);
missing or non-finite selected volume is unavailable, not an illiquid observation.
Validate values only within each consumed window; preserve row positions and
ignore unused older values. History dates must still be distinct and newest-first.
Exclude affected candidates before composite/percentile ranking and report them
under metadata.price_bar_gap_exclusions with symbol, dated reason and data_gaps.
Markdown includes an incomplete-screening warning and reason list; the console
prints the exclusion count. Quote gaps identify the quote and use its supplied
date, or explicitly say quote (date unavailable); never invent a session date.
Insufficient-length returns retain their existing zero score/error without a
price-gap flag, matching the pattern calculator. Direct analysis and historical
scans retain this legacy behavior; cross-sectional screening still requires its
existing minimum history. Candidate JSON excludes price-gap analyses, so downstream
consumers do not receive gap-placeholder scores as valid candidates. Healthy candidate
and report output is unchanged.
Historical scans validate each as-of pattern window before quote synthesis.
If any consumed window is invalid, the Python API raises VCPPriceDataError
(a ValueError with dated data_gaps); the CLI exits 1 before writing reports,
rather than presenting incomplete analysis as zero detections. More recent bars
than the as-of date remain excluded. Synthetic quotes also require every high/low
in the trailing year window, every volume in the trailing 50-bar window, and the
as-of close. Invalid lows are not filtered out of the minimum. Component gaps,
including benchmark RS gaps, abort the scan rather than being reported as no pattern.
Read the top-level evaluation_coverage block before interpreting candidates.
Reports show evaluated / total and complete, partial or not_evaluable.
Incomplete coverage means a zero-candidate result is undetermined, not an
absence of opportunities. Valid filter rejections count as evaluated; missing
quotes, insufficient history, provider failures and candidate-cap exclusions do
not. Candidate analysis requires 253 usable benchmark sessions and 30 usable stock sessions: each row needs a valid ISO date and finite positive prices, dates must be distinct and newest-first (duplicate, undated or out-of-order history is not evaluated). Stocks with 30-199 sessions (recent listings) cannot pass the 200-day Trend Template; they enter VCP analysis only when the latest close is within 25% of the high since listing, and are marked setup_candidate.young_stock: true. Stocks with fewer than 253 sessions are left out of the cross-sectional RS percentile ranking (they keep their own RS estimate), so admitting them never changes the RS or composite score of an established stock.
Do not treat successful report generation as complete evaluation.
vcp_screener_YYYY-MM-DD_HHMMSS.json - Structured resultsvcp_screener_YYYY-MM-DD_HHMMSS.md - Human-readable reportreferences/vcp_methodology.md - VCP theory and Trend Template explanationreferences/scoring_system.md - Scoring thresholds and component weightsreferences/fmp_api_endpoints.md - API endpoints and rate limitsreferences/minervini_setup_taxonomy.md - Minervini's setup names (VCP as a trait, cup with handle, cheat, double bottom, IPO base) and the thresholds used by the setup-candidate tierreferences/minervini_2021_usic_entries.csv - Minervini's published 2021 entries, used by scripts/eval_minervini_recall.py (reports strict-VCP and setup-tier recall)references/fmp_api_endpoints.md (opens in a new tab)references/minervini_2021_usic_entries.csv (opens in a new tab)references/minervini_setup_taxonomy.md (opens in a new tab)references/scoring_system.md (opens in a new tab)references/vcp_methodology.md (opens in a new tab)requirements.txt (opens in a new tab)scripts/_fmp_compat.py (opens in a new tab)scripts/_price_bars.py (opens in a new tab)scripts/calculators/__init__.py (opens in a new tab)scripts/calculators/breakout_today_calculator.py (opens in a new tab)scripts/calculators/execution_state.py (opens in a new tab)scripts/calculators/forward_outcome.py (opens in a new tab)scripts/calculators/pattern_classifier.py (opens in a new tab)scripts/calculators/pivot_proximity_calculator.py (opens in a new tab)scripts/calculators/relative_strength_calculator.py (opens in a new tab)scripts/calculators/setup_candidate_calculator.py (opens in a new tab)scripts/calculators/setup_rank_calculator.py (opens in a new tab)scripts/calculators/trend_template_calculator.py (opens in a new tab)scripts/calculators/vcp_pattern_calculator.py (opens in a new tab)scripts/calculators/volume_pattern_calculator.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/tradermonty-claude-trading-skills:vcp-screenerfrom tradermonty-claude-trading-skills
tradermonty-claude-trading-skills@cascade-business-ops is listed by joshuarweaver/cascade-business-ops — review the source before installing
npx claudepluginhub joshuarweaver/cascade-business-ops --plugin tradermonty-claude-trading-skills74 skills in this plugin
/backtest-expertExpert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development./breadth-chart-analystThis skill should be used when analyzing market breadth charts, specifically the S&P 500 Breadth Index (200-Day MA based) and the US Stock Market Uptrend Stock Ratio charts. Use this skill when the user provides breadth chart images for analysis, requests market breadth assessment, positioning strategy recommendations, or wants to understand medium-term strategic and short-term tactical market outlook based on breadth indicators. Also works WITHOUT chart images by fetching CSV data directly from public sources. All analysis and output are conducted in English./breakout-trade-plannerGenerate Minervini-style breakout trade plans from VCP screener output with worst-case risk calculation, portfolio heat management, and Alpaca-compatible order templates (stop-limit bracket for pre-placement, limit bracket for post-confirmation). Use when user has VCP screener results and wants actionable trade plans with entry/stop/target levels and position sizing.Other plugins' skills for the same job