Skip to content
Finance
Skill

/ftd-detector

Detects Follow-Through Day (FTD) signals for market bottom confirmation using William O'Neil's methodology. Dual-index tracking (S&P 500 + NASDAQ) with state machine for rally attempt, FTD qualification, and post-FTD health monitoring. Use when user asks about market bottom

From plugin
claude-trading-skills
6.9k74 skills2 agents2 commands

Claude Code

$ npx -y skills add tradermonty/claude-trading-skills --skill ftd-detector --agent claude-code

SKILL.md

ftd-detector.SKILL.md
name: ftd-detector
description: Detects Follow-Through Day (FTD) signals for market bottom confirmation using William O'Neil's methodology. Dual-index tracking (S&P 500 + NASDAQ) with state machine for rally attempt, FTD qualification, and post-FTD health monitoring. Use when user asks about market bottom signals, follow-through days, rally attempts, re-entry timing after corrections, or whether it's safe to increase equity exposure. Complementary to market-top-detector (defensive) - this skill is offensive (bottom confirmation).

FTD Detector Skill

FTD lifecycle and evidence contract (#765)

  • Keep the FTD event separate from its current health. A close below the FTD-day low is a warning, not automatic rally failure. A later intraday low strictly below the recorded Day 1 low fails that rally; equality holds. This model explicitly uses Day 1, not an interchangeable FTD-candle or closing swing low.
  • Missing/non-finite/nonpositive Day 1 or post-FTD low evidence means unavailable. Never substitute a close for a missing low.
  • Default Nasdaq evidence is `^IXIC` (Composite). Use `--nasdaq-symbol QQQ` only for a labeled Nasdaq-100 ETF proxy. Never substitute its volume or price into an index series or claim its DD count is the Composite count. No automatic fallback.
  • `quality_score` is an uncalibrated technical heuristic, not success probability. `exposure_range` is `Not assessed` in every state. Do not derive portfolio percentages from the score; assess breadth, leadership, portfolio limits and operator decisions separately.
  • The Day 4–10 qualifying window is this model's bounded choice; it is not a claim that every later follow-through is invalid under all O'Neil interpretations.

Purpose

Detect Follow-Through Day (FTD) signals that confirm a market bottom, using an explicit O'Neil-style technical model. Generates a quality score (0-100) with technical health warnings; portfolio exposure is not assessed.

**Complementary to Market Top Detector:**

  • Market Top Detector = defensive (detects distribution, rotation, deterioration)
  • FTD Detector = offensive (detects rally attempts, bottom confirmation)

When to Use This Skill

**English:**

  • User asks "Is the market bottoming?" or "Is it safe to buy again?"
  • User observes a market correction (3%+ decline) and wants re-entry timing
  • User asks about Follow-Through Days or rally attempts
  • User wants to assess if a recent bounce is sustainable
  • User asks about increasing equity exposure after a correction
  • Market Top Detector shows elevated risk and user wants bottom signals

**Japanese:**

  • 「底打ちした?」「買い戻して良い?」
  • 調整局面(3%以上の下落)からのエントリータイミング
  • フォロースルーデーやラリーアテンプトについて
  • 直近の反発が持続可能か評価したい
  • 調整後のエクスポージャー拡大の判断
  • Market Top Detectorが高リスク表示の後の底打ちシグナル確認

Difference from Market Top Detector

| Aspect | FTD Detector | Market Top Detector | |--------|-------------|-------------------| | Focus | Rally-event confirmation | Market deterioration assessment | | Trigger | Market correction (3%+ decline) | Market at/near highs | | Signal | Rally attempt → FTD → health assessment | Distribution → deterioration evidence | | Score | 0-100 heuristic FTD quality | Separate heuristic market-risk score | | Action | When technical confirmation appears | When deterioration appears |

---

Execution Workflow

Phase 1: Execute Python Script

Run the FTD detector script:

python3 skills/ftd-detector/scripts/ftd_detector.py --api-key $FMP_API_KEY

The script will: 1. Fetch S&P 500 (^GSPC) and Nasdaq Composite (^IXIC) historical data (60+ trading days) from FMP API 2. Fetch current quotes for both indices 3. Run dual-index state machine (correction → rally → FTD detection) 4. Assess post-FTD health (distribution days, invalidation, power trend) 5. Calculate quality score (0-100) 6. Generate JSON and Markdown reports

**API Budget:** 4 calls (well within free tier of 250/day)

Phase 2: Present Results

Present the generated Markdown report to the user, highlighting:

  • Current market state (correction, rally attempt, FTD confirmed, etc.)
  • Quality score and signal strength
  • Exposure not assessed: breadth, leadership and portfolio risk require separate inputs
  • Key watch levels (swing low, FTD day low)
  • Post-FTD health (distribution days, power trend)

Phase 3: Contextual Guidance

Based on the market state, provide additional guidance:

**If FTD Confirmed (score 60+):**

  • Suggest looking at leading stocks in proper bases
  • Reference CANSLIM screener for candidate stocks
  • State that portfolio sizing and stop placement are not assessed by this score

**If Rally Attempt (Day 1-3):**

  • Advise patience, do not buy ahead of FTD
  • Suggest building watchlists

**If No Correction:**

  • FTD analysis is not applicable in uptrend
  • Redirect to Market Top Detector for defensive signals

---

State Machine

NO_SIGNAL → CORRECTION → RALLY_ATTEMPT → FTD_WINDOW → FTD_CONFIRMED
                ↑              ↓               ↓              ↓
                └── RALLY_FAILED ←─────────────┘     FTD_INVALIDATED

| State | Definition | |-------|-----------| | NO_SIGNAL | Uptrend, no qualifying correction | | CORRECTION | 3%+ decline with 3+ down days | | RALLY_ATTEMPT | Day 1-3 of rally from swing low | | FTD_WINDOW | Day 4-10, waiting for qualifying FTD | | FTD_CONFIRMED | Valid FTD signal detected | | RALLY_FAILED | Rally breached the Day 1 low (or exhausted this model's FTD window) | | FTD_INVALIDATED | Intraday low below the recorded rally Day 1 low |

Quality Score (0-100)

| Score | Signal | Exposure | |-------|--------|----------| | 80-100 | Strong FTD | Not assessed | | 60-79 | Moderate FTD | Not assessed | | 40-59 | Weak FTD | Not assessed | | <40 | Very weak FTD (unless explicitly invalidated) | Not assessed | | 0 | Unavailable: data gap | Not assessed |

---

Prerequisites

  • **FMP API Key:** Required. Set `FMP_API_KEY` environment variable or pass via `--api-key` flag.
  • **Python 3.9+:** With `requests` library install
Read more
@tradermonty
Ships withclaude-trading-skills

Data handling: Privacy policy · Security policy 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.

6.9k74 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
6.9k
Star history of tradermonty/claude-trading-skills on GitHub, a chart by star-history.com

Other skills on claude-trading-skills.

More skills from other plugins.

ccxt-cli

ccxt-cli

CCXT command-line interface (ccxt-cli) for interacting with 100+ cryptocurrency exchanges directly from the terminal — no code…

ccxt9d45k
@ccxt@ccxtInstall Skill

Questions about ftd-detector.

Which coding agents can use ftd-detector?
ftd-detector installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.