backtest-expert
Expert guidance for systematic backtesting of trading strategies. Use when developing,…
Detect crowded speculative positioning in CFTC futures markets (COT report analysis) to find contrarian setups using Jason Shapiro's methodology. Screens large-speculator ("non-commercial") net positioning across 65 futures markets (indices, rates, FX, metals, energy, crypto)
$ npx -y skills add tradermonty/claude-trading-skills --skill cot-contrarian-detector --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cot-contrarian-detectorContext preview
The summary Claude sees to decide when to auto-load this skill.
Detect crowded speculative positioning in CFTC futures markets (COT report analysis) to find contrarian setups using Jason Shapiro's methodology. Screens large-speculator ("non-commercial") net positioning across 65 futures markets (indices, rates, FX, metals, energy, crypto)
name: cot-contrarian-detector
description: Detect crowded speculative positioning in CFTC futures markets (COT report analysis) to find contrarian setups using Jason Shapiro's methodology. Screens large-speculator ("non-commercial") net positioning across 65 futures markets (indices, rates, FX, metals, energy, crypto) via the FMP Commitment of Traders API, computes a 3-year and 26-week COT Index per market, and classifies extremes as CROWDED_LONG / CROWDED_SHORT. Use when the user asks about COT report analysis, crowded positioning, "who is trapped", speculative positioning extremes, contrarian futures setups, or wants to run Jason Shapiro-style analysis. This skill automates crowding DETECTION only (step 1 of 5) — it does not generate trade signals by itself.Implements step 1 of Jason Shapiro's COT (Commitment of Traders) contrarian process: detect when large speculators are crowded into one side of a futures market. Crowded positioning is a *precondition* for a contrarian trade, not a trade signal — a market only becomes tradable once crowding is confirmed by a news failure and price-action reversal (steps 2-3), which this skill guides the user through manually.
**Core thesis (Shapiro):** Large speculators (hedge funds, CTAs, momentum traders) tend to be maximally positioned at trend exhaustion, not trend inception. When they are already crowded onto one side, the next big move is statistically more likely to run them over than to reward them further. Fade the *speculators*, not the commercials (commercials hedge for structural reasons and are not a crowd-psychology signal).
**English:**
**Japanese:**
**Do NOT use when:**
actionable; see Guardrails below
futures markets only (indices, rates, FX, metals, energy, agri, crypto), not single stocks
`--api-key`. **COT endpoints require an FMP Premium+ plan** — a free-tier key will not have access.
full universe), plus one call for the market list when neither `--symbols` nor `--core` is given.
# Curated core futures universe (23 liquid/representative markets) python3 skills/cot-contrarian-detector/scripts/screen_cot_crowding.py --core --output-dir reports/ # Explicit symbols python3 skills/cot-contrarian-detector/scripts/screen_cot_crowding.py --symbols "ES,GC,CL" --output-dir reports/ # Full universe (all ~65 markets FMP's COT list covers) python3 skills/cot-contrarian-detector/scripts/screen_cot_crowding.py --output-dir reports/
The script fetches each market's weekly legacy COT report (large-speculator long/short positions), computes a 156-week (3-year) and 26-week COT Index per market, and classifies extremes:
Markets with insufficient history to compute the index are never silently dropped — they appear in a `skipped` list with the reason (e.g. "insufficient history: 40/156 weeks").
Present the generated Markdown report, highlighting:
For any `CROWDED_LONG` / `CROWDED_SHORT` market the user wants to pursue, load `references/shapiro-methodology.md` and walk through the remaining steps — these are **not automated**:
1. ~~Crowding detection~~ (done — this skill) 2. **News failure** — use WebSearch to check whether recent news favorable to the crowd's direction failed to move price the way the crowd would expect (e.g. crowded-long market doesn't rally on bullish news). This is the core edge and the most important manual confirmation. 3. **Price-action confirmation** — check the weekly chart for a reversal pattern or a failure at a new high/low. 4. **Entry** — against the crowd, with a stop at the recent swing extreme and small, fixed-risk sizing (see `position-sizer` skill). 5. **Exit** — when positioning normalizes toward neutral (COT Index back toward 50) or the stop is hit.
Never recommend an entry from crowding alone — steps 2 and 3 must both confirm first.
a `run_context` block (schema_version, params, universe, data_date) plus `markets` (ranked results) and `skipped` (never silently dropped).
report with Crowded Long / Crowded Short / Full Ranking / Week-over-Week Swings / Skipped Markets / Methodology sections.
CFTC publishes the COT report **Fridays ~3:30pm ET**, with positions as of the **prior Tuesday** — data is always 3+ days old by the time it's published, and up to 9 days old by the following Friday. Run this skill:
read
Claude Trading Skills started as a personal project to use AI to improve my own trading process. Claude Trading Skills is a Claude Skills-based trading workflow toolkit for time-constrained individual investors.
Expert guidance for systematic backtesting of trading strategies. Use when developing,…
This skill should be used when analyzing market breadth charts, specifically the S&P 500…
Generate Minervini-style breakout trade plans from VCP screener output with worst-case risk…
Screen US stocks using William O'Neil's CANSLIM growth stock methodology. Use when user…
Synthesize the three Jason Shapiro contrarian-pipeline verdicts (COT crowding, news-reaction…
Quantifies crypto market regime health using free, keyless public data (CoinGecko + Binance…