/quant-skills:coil-scanfrom quant-skills
Scans stocks for dual-timeframe Williams %R Trend Exhaustion patterns, identifying deeply oversold names in the 'coil' and flagging those that just triggered a bullish reversal.
Ships in quant-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.
Mirrors the "%R Trend Exhaustion [upslidedown]" TradingView indicator (dual timeframe 21 + 112). Finds stocks that are both deeply oversold AND just starting to reverse.
100 * (close - highestHigh_n) / (highestHigh_n - lowestLow_n), range −100…0.Fast just crossed back above −80. These are actionable reversal candidates.
A sanity check filters false-positives:
The canonical false-positive this catches: SLB crossed up but had already run +4% to just under its 21EMA by the time the scan ran — that's a chase, not an entry. It lands in the sanity-filtered section, not the fresh list.
Both legs ≤ −80, no trigger yet. Sorted deepest-first (most negative slow leg = most structurally exhausted).
The days-in-coil counter comes from the persistent state file
(state/coil_watch.json), so the scan can say "IREN — day 6 in the coil."
A name stays in the store until it triggers or exits the coil entirely.
SYM fast%R slow%R depth close day-in-coil vs SMA200 vs EMA21
IREN -92.3 -88.1 -8.1 $7.42 day 3 below SMA200 below EMA21
min(fast, slow) − (−80). Negative = deeper in the hole.From the repo root or anywhere under it:
python .claude/skills/coil-scan/scripts/coil_scan.py
Options:
# smoke test against a short list
python coil_scan.py --universe IREN,RGTI,SMCI,SLB,FIG,GLD,ASTS
# limit universe size
python coil_scan.py --limit 50
# write JSON output
python coil_scan.py --json /tmp/coil_2026-07-19.json
# custom universe file (one ticker per line, or comma-separated)
python coil_scan.py --universe /tmp/my_watchlist.txt
Universe defaults to: all live TDPro screeners + stock-recap persistent watch
list (falls back to the most recent stock-recap/runs/*/raw/screener_*.json
if the live API is unavailable). Aim: ~150–200 names.
state/coil_watch.json is keyed by ticker and tracks:
firstSeen — date first seen in the coildaysInCoil — rolling counter updated each runentryClose / lastClose — price anchorstriggered / triggerDate — when the cross firedOn each run: newly-coiled names are added, existing names increment their counter, triggered names are flagged, and names that left the coil without triggering are dropped.
GET /api/agent/ticker/{SYMBOL}/chart-data?days=365
(TraderDaddy Pro Railway API; Bearer token from .env_agent_api).
Needs ≥115 bars for the slow %R(112) leg.GET /api/agent/ticker/{SYMBOL}
(close, ema21, sma200, atr, rsi — used for sanity check + display).GET /api/screeners + GET /api/screeners/{id}/run × 10.The scan is a data layer — Michael confirms setups on Ghost Flow (the %R EXHAUST panel is visible there) before sizing.
coil_ab.py)A sibling script runs two trigger rules side by side so we can settle whether tightening the trigger helps:
find_trigger): both legs were ≤ −80, then fast crosses > −80.
Slow is not required to still be under −80 at the cross.A 2026-07-21 backtest found STRICT is worse — the crosses it drops (slow already recovered = both legs lifting together = structural confirmation) outperformed at every horizon (3/5/10/20d). Fast-leads-while-slow-buried is the earlier but weaker (knife) signal. So the harness is a live forward test to confirm that before deciding.
python coil_ab.py # log today's fresh triggers under both rules
python coil_ab.py --report # re-price the ledger, print STRICT vs CURRENT-ONLY
Ledger: state/ab_ledger.json (deduped per symbol|trig_date). Logs daily via
weekday 22:00-UTC cron → state/ab_cron.log. Core coil_scan.py is untouched.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mphinance/alpha-skills --plugin quant-skills64 skills in this plugin
/0dte-flow0DTE day-trading playbook for a small account — Ghost Alpha signals into Tradier XSP (Mini-SPX) same-day options with strict IFTTT entry/exit rules and hard risk guardrails. Use when Michael wants to run a 0DTE session, size a contract, decide whether a signal qualifies, or apply the exit cascade. This is a DECISION-SUPPORT playbook — it drafts the plan; Michael places every order./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./batch-scannerOther plugins' skills for the same job