
FTD Detector
FreeDetect market bottom signals with precision.
Free · Opens the source repo
What FTD Detector does
The FTD Detector skill is designed to identify Follow-Through Day (FTD) signals that indicate a potential market bottom, utilizing the methodology established by William O'Neil. This skill focuses on dual-index tracking, specifically monitoring the S&P 500 and NASDAQ indices, to assess market conditions and provide actionable insights for traders. By employing a state machine approach, it effectively categorizes market movements into phases such as correction, rally attempt, and FTD confirmation, allowing users to understand the current market dynamics.
When executed, the FTD Detector script fetches historical data and current quotes for the specified indices, running a detailed analysis to determine if a market bottom is forming. It generates a quality score ranging from 0 to 100, which helps users gauge the strength of the FTD signal and make informed decisions about re-entering the market after corrections. The skill also offers contextual guidance based on the results, suggesting strategies for increasing equity exposure or building watchlists depending on the market state.
This skill is particularly useful for traders who want to navigate market corrections and identify optimal re-entry points. It serves as a complementary tool to the Market Top Detector, which focuses on defensive strategies. By providing clear signals and quality assessments, the FTD Detector helps users make timely decisions in a volatile trading environment, enhancing their ability to capitalize on market opportunities.
The FTD Detector skill is ideal for both novice and experienced traders looking for a systematic approach to market analysis. It streamlines the process of identifying bottom signals, making it easier for users to respond to changing market conditions and adjust their trading strategies accordingly.
When to use it
Use this skill when you want to know if the market is bottoming or when it's safe to increase equity exposure after a decline.
When not to use it
This skill is not applicable during strong uptrends without corrections; for those situations, the Market Top Detector is more appropriate.
What you can build with it
Market Correction Analysis
After observing a 3% market decline, use the FTD Detector to assess if a market bottom is forming and when to re-enter.
Rally Attempt Monitoring
During a rally attempt, utilize the skill to confirm if the rally is sustainable and whether it qualifies as an FTD.
Re-Entry Timing
When considering increasing equity exposure post-correction, the FTD Detector provides critical insights and quality scores to guide your decision.
How to install FTD Detector
View source1. Install with the skills CLI
npx skills add tradermonty/claude-trading-skills/ftd-detector --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by tradermontyFTD Detector Skill
Purpose
Detect Follow-Through Day (FTD) signals that confirm a market bottom, using William O'Neil's proven methodology. Generates a quality score (0-100) with exposure guidance for re-entering the market after corrections.
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 | Bottom confirmation (offensive) | Top detection (defensive) |
| Trigger | Market correction (3%+ decline) | Market at/near highs |
| Signal | Rally attempt → FTD → Re-entry | Distribution → Deterioration → Exit |
| Score | 0-100 FTD quality | 0-100 top probability |
| Action | When to increase exposure | When to reduce exposure |
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:
- Fetch S&P 500 and QQQ historical data (60+ trading days) from FMP API
- Fetch current quotes for both indices
- Run dual-index state machine (correction → rally → FTD detection)
- Assess post-FTD health (distribution days, invalidation, power trend)
- Calculate quality score (0-100)
- 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
- Recommended exposure level
- 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
- Remind about position sizing and stops
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 broke below swing low |
| FTD_INVALIDATED | Close below FTD day's low |
Quality Score (0-100)
| Score | Signal | Exposure |
|---|---|---|
| 80-100 | Strong FTD | 75-100% |
| 60-79 | Moderate FTD | 50-75% |
| 40-59 | Weak FTD | 25-50% |
| <40 | No FTD / Failed | 0-25% |
Prerequisites
- FMP API Key: Required. Set
FMP_API_KEYenvironment variable or pass via--api-keyflag. - Python 3.9+: With
requestslibrary installed. - API Budget: 4 calls per execution (well within FMP free tier of 250/day).
Output Files
- JSON:
ftd_detector_YYYY-MM-DD_HHMMSS.json - Markdown:
ftd_detector_YYYY-MM-DD_HHMMSS.md
Reference Documents
skills/ftd-detector/references/ftd_methodology.md
- O'Neil's FTD rules in detail
- Rally attempt mechanics and day counting
- Historical FTD examples (2020 March, 2022 October)
skills/ftd-detector/references/post_ftd_guide.md
- Post-FTD distribution day failure rates
- Power Trend definition and conditions
- Success vs failure pattern comparison
When to Load References
- First use: Load
skills/ftd-detector/references/ftd_methodology.mdfor full understanding - Post-FTD questions: Load
skills/ftd-detector/references/post_ftd_guide.md - Regular execution: References not needed - script handles analysis
Frequently asked questions about FTD Detector
Similar skills
Initiating Coverage
Create institutional-quality equity research reports.
Financial Tear Sheet Generator
Create professional company profiles with live data.
Pitch Deck Population
Effortlessly fill pitch deck templates with data.
Tax Season Organizer
Streamline your tax prep for accountants.
Month End Prep
Streamline your month-end close process with ease.
Funding Digest
Summarize funding rounds in a single slide.
