Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

tradermontyот tradermonty★ 9 343 звезды на GitHub

Об этом скилле

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 rally low (the low of the pullback the rally attempt started from, frozen on Day 1; not the lowest low of the whole correction) fails that rally, before and after an FTD; equality holds. Day 1 low is informational only, not an interchangeable failure level.
  • Missing/non-finite/nonpositive low evidence on any replayed bar 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.
  • Day 4–10 is this model's FTD window. An attempt that reaches Day 11 without an FTD expires (RALLY_FAILED) and a new segment starts at that bar, so the next count's reference low is the lowest low from the expiry bar through its Day 1. The expiry bar is never Day 1, and a down close arms the new count (while not armed a bar can only arm it). IBD is reported to note that most FTDs come on days 4-7 and some come later (secondary report, IBD's official rule text not verified), so a later FTD is not modelled.

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 (500 trading sessions; the whole history is replayed) 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

The model replays the whole supplied history (500 sessions are fetched) oldest to newest and carries state, so a confirmed FTD stays confirmed until a defined event ends it and the result does

Полный SKILL.md на GitHub

Установить ftd-detector в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/ftd_methodology.mdreferences/post_ftd_guide.mdrequirements.txtscripts/_market_calendar.pyscripts/_price_bars.pyscripts/fmp_client.pyscripts/ftd_detector.pyscripts/ftd_lifecycle.pyscripts/post_ftd_monitor.pyscripts/rally_tracker.pyscripts/report_generator.py

FAQ

Что делает скилл 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 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?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ftd-detector запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ftd-detector с