/quant-skills:ibd-distribution-day-monitorfrom quant-skills
Detects IBD Distribution Days for QQQ/SPY, tracks expiration and invalidation, classifies risk, and recommends TQQQ/QQQ exposure. Use after market close.
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.
Detect IBD-style Distribution Days for major market ETFs (QQQ as Nasdaq proxy, SPY as S&P 500 proxy) and produce a daily market deterioration signal plus a TQQQ/QQQ exposure recommendation. Designed for post-market review.
Invoke this skill:
Do NOT use this skill to:
--as-of YYYY-MM-DD for backtesting against a historical session.--api-key, config.data.api_key, or FMP_API_KEY env var (in that priority order).A Distribution Day is detected when:
A Distribution Day is removed from the active count when either:
Today's DD is never invalidated immediately because there are no post-DD sessions to evaluate the 5% gain against.
d5_count / d15_count / d25_count count active records with age_sessions <= N.| Risk | Trigger |
|---|---|
| NORMAL | d25 <= 2 |
| CAUTION | d25 >= 3 |
| HIGH | d25 >= 5 OR d15 >= 3 OR d5 >= 2 |
| SEVERE | d25 >= 6 OR d15 >= 4 OR (market_below_21ema_or_50ma AND d25 >= 5) |
When both QQQ and SPY are loaded, QQQ-weighted overall logic applies (TQQQ-aware): a single SEVERE escalates to SEVERE; QQQ HIGH escalates to overall HIGH; QQQ NORMAL + SPY HIGH still escalates to HIGH (broad-market spillover).
| Risk | Action | Target Exposure | Trailing Stop |
|---|---|---|---|
| NORMAL | HOLD_OR_FOLLOW_BASE_STRATEGY | 100% | base |
| CAUTION | AVOID_NEW_ADDS | 75% | min(base, 7%) |
| HIGH | REDUCE_EXPOSURE | 50% | min(base, 5%) |
| SEVERE | CLOSE_TQQQ_OR_HEDGE | 25% | min(base, 3%) |
QQQ uses a less aggressive policy (HIGH=75%, SEVERE=50%) since it lacks 3x leverage.
get_historical_prices).prepare_effective_history so effective_history[0] is the evaluation session.high_since, invalidation event, and status.d5 / d15 / d25 active records.market_below_21ema_or_50ma (None if data insufficient).--output-dir with API keys redacted.Saved to reports/ (or --output-dir):
ibd_distribution_day_monitor_YYYY-MM-DD_HHMMSS.jsonibd_distribution_day_monitor_YYYY-MM-DD_HHMMSS.mdJSON is UTF-8 with ensure_ascii=False (Japanese explanations preserved). Sensitive keys (api_key, fmp_api_key, token, etc.) are redacted automatically.
config/default.yaml is changed deliberately.python3 skills/ibd-distribution-day-monitor/scripts/ibd_monitor.py \
--symbols QQQ,SPY \
--lookback-days 80 \
--instrument TQQQ \
--current-exposure 100 \
--base-trailing-stop 10 \
--output-dir reports/
FMP API key required. Free tier (250 calls/day) is sufficient for daily QQQ + SPY runs.
ftd-detector: Bottom confirmation via Follow-Through Days (counterpart of this top-side signal).market-top-detector: Composite 0-100 top probability score using O'Neil distribution + other components.position-sizer: Convert risk-management recommendations into share counts.README.md (opens in a new tab)config/default.yaml (opens in a new tab)references/ibd_distribution_methodology.md (opens in a new tab)references/tqqq_exposure_policy.md (opens in a new tab)scripts/data_loader.py (opens in a new tab)scripts/distribution_day_tracker.py (opens in a new tab)scripts/exposure_policy.py (opens in a new tab)scripts/fmp_client.py (opens in a new tab)scripts/history_utils.py (opens in a new tab)scripts/ibd_monitor.py (opens in a new tab)scripts/math_utils.py (opens in a new tab)scripts/models.py (opens in a new tab)scripts/report_generator.py (opens in a new tab)scripts/risk_classifier.py (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/helpers.py (opens in a new tab)scripts/tests/test_data_loader.py (opens in a new tab)scripts/tests/test_distribution_day_tracker.py (opens in a new tab)scripts/tests/test_exposure_policy.py (opens in a new tab)scripts/tests/test_history_utils.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ibd, distribution-day, market-risk, tqqq-exposure, stock-market-analysis
64 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-scannernpx claudepluginhub mphinance/alpha-skills --plugin quant-skillsOther plugins' skills for the same job