internal-comms
Write internal communications following company formats, including status reports, leadership updates, and newsletters.
ANanthropics/skills203k3,265 new stars in the last 7 days
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).
^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.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:
English:
Japanese:
| 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 |
Run the FTD detector script:
python3 skills/ftd-detector/scripts/ftd_detector.py --api-key $FMP_API_KEY
The script will:
API Budget: 4 calls (well within free tier of 250/day)
Present the generated Markdown report to the user, highlighting:
Based on the market state, provide additional guidance:
If FTD Confirmed (score 60+):
If Rally Attempt (Day 1-3):
If No Correction:
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 not depend on a window length.
NO_SIGNAL → CORRECTION → RALLY_ATTEMPT → FTD_WINDOW → FTD_CONFIRMED
↑ ↓ ↓ ↓
└── RALLY_FAILED ←─────────────┘ FTD_INVALIDATED
market_status maps the states onto IBD's three tiers (additive field on every
analyze_single_index result, per index in the JSON, and combined in market_state):
| market_status | Legacy states |
|---|---|
confirmed_uptrend | FTD_CONFIRMED or UPTREND_RESUMED |
uptrend_under_pressure | FTD_CONFIRMED or UPTREND_RESUMED (cycle.uptrend_status = under_pressure) |
market_in_correction | CORRECTION, RALLY_ATTEMPT, FTD_WINDOW, RALLY_FAILED, FTD_INVALIDATED |
null | NO_SIGNAL: warm-up before the first qualifying correction, data gap, insufficient data |
An FTD leaves a correction, and so does a new high: IBD resumes an uptrend without an FTD when an index closes at a new high. That state is UPTREND_RESUMED (cycle.resumed_without_ftd true, ftd null, no FTD event and no FTD-day low); every confirmed-phase rule applies to it, and its failure reference is the active attempt's reference low, or the lowest low of the active correction segment when no attempt is active. Tuning knob FTD_RESUME_NEW_HIGH, read from the environment when an index is analyzed (so a replay script can set it per run): pre_correction_high (default: a close above the peak the correction was measured from), 52w (above the highest close of the previous 252 sessions; off until 252 sessions exist since the replay start), replay_high (above the highest close in the fetched history, which is not a true all-time high) or off. An invalid value warns on stderr and uses the default. The default is uncalibrated; the effective value is recorded in cycle.parameters. IBD sets one status
from either major index, so the combined status follows the better confirmed index (FTD_CONFIRMED or UPTREND_RESUMED; a failed event on the other index never replaces it). The resume reference replay_high is the highest valid close in the fetched history.
A close below the 50-session SMA puts it under pressure only after the index has closed above that SMA once since the FTD (cycle.regained_50sma_since_ftd), as an FTD normally comes from below it. The uptrend ends (market in correction) on 6+ active distribution days with a close below the 50-day line, even if the SMA was never regained, or on a 10% drawdown from the post-FTD peak. Secondary sources describe IBD's trigger variously (one cites the 21-day EMA); the 50-day line avoids declaring corrections on shallow pullbacks, and the threshold is unverified. Two tuning knobs, read from the environment when an index is analyzed, make the distribution correction trigger stricter (an invalid value warns on stderr and uses the default; the effective values are in cycle.parameters; the defaults reproduce the behavior above and are uncalibrated): FTD_CORRECTION_DD_COUNT, an integer from 6 to 10 (default 6), is the number of active distribution days the trigger needs; FTD_CORRECTION_MIN_DRAWDOWN_PCT, a number from 0 to 9.99 (default 0, meaning none), additionally requires the close to be at least that many percent below the post-confirmation peak close. The undercut (invalidation), the 10% deep-drawdown trigger and the 5-DD pressure count are unchanged. A close below the FTD-day low also puts the uptrend under pressure (warning only, never a failure); cycle.pressure_reasons records the cause. See references/ftd_methodology.md for the transition rules (uncalibrated model choices).
| State | Definition |
|---|---|
| NO_SIGNAL | Warm-up (no qualifying correction since the replay start), data gap or insufficient data |
| CORRECTION | 3%+ decline with 3+ down closes, or a confirmed uptrend ended by distribution or a 10% drawdown |
| RALLY_ATTEMPT | Day 1-3 of rally from the recent pullback low |
| FTD_WINDOW | Day 4-10, waiting for a qualifying FTD |
| FTD_CONFIRMED | Valid FTD; stays until the rally low is undercut or the uptrend ends (see market_status) |
| UPTREND_RESUMED | A new high ended the correction without an FTD; a confirmed uptrend with no FTD event (cycle.resumed_without_ftd) |
| RALLY_FAILED | Rally undercut the rally low, or no FTD by Day 10 (rally_attempt.end_reason: undercut or expired) |
| FTD_INVALIDATED | Intraday low below the rally low of the attempt that produced the FTD |
| 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 | No FTD, Failed/Invalidated, Unavailable: data gap, a Very weak FTD at the floor, or FTD under pressure at the floor | Not assessed |
A score of 0 alone does not mean a data gap. Read signal, the market state and
the quality score's data_gap (set only with Unavailable: data gap) before
interpreting it.
FMP_API_KEY environment variable or pass via --api-key flag.requests library installed.ftd_detector_YYYY-MM-DD_HHMMSS.jsonftd_detector_YYYY-MM-DD_HHMMSS.mdA missing or non-finite close/volume (or a non-positive close) is never read as 0, and bars are never dropped. Bar fields are read through the vendored scripts/_price_bars.py helper.
data_gap (bool, every run, at the top level and in market_state): true when an index replay hit a bad bar it could not restart past (a bad close, volume or low restarts the replay after it, which needs 60 clean sessions) or a post-FTD check hit a bad bar.data_quality (every run): per index, the window check (window_sessions, bad_bars, bad_dates, latest_bad) plus sp500.power_trend_bad_bars for the power-trend input (counted only when the power trend runs, 50+ bars). Each index block also carries its own data_quality, and error when the analysis failed ("Insufficient data" or "Data gap: ...").NO_SIGNAL with current_price / lookback_high / correction_depth_pct set to null; no rally or FTD logic runs for it. With any gapped index the run's combined_state is reported as NO_SIGNAL with data_gap: true, meaning state unavailable (not an uptrend), with ftd_index: null and no post-FTD checks. The other index is never promoted, because the gap could be hiding the gapped index's own (possibly invalidated) FTD. Each index's own analysis stays in the JSON. The Markdown headline reads "State unavailable (data gap)".quality_score is total_score: 0 (always an int, never null), signal: "Unavailable: data gap", exposure_range: "Not assessed", data_gap: true. Treat this as "no usable confirmation": do not increase exposure on it. A gapped distribution check keeps distribution_count: 0 (int) with data_gap: true; a gapped invalidation check reports invalidated: null. A post-FTD gap also reports the combined state as NO_SIGNAL with data_gap: true (state unavailable), since the FTD can be neither confirmed nor invalidated.power_trend: null with a reason; this alone does not set data_gap or change the score.volume_reference (basis previous_full_session plus the reference date); all other sessions keep the previous-session comparison.skills/ftd-detector/references/ftd_methodology.mdskills/ftd-detector/references/post_ftd_guide.mdskills/ftd-detector/references/ftd_methodology.md for full understandingskills/ftd-detector/references/post_ftd_guide.mdFTD-day-low pressure caps published quality at 59 (uncalibrated conservative heuristic); it does not erase the event or imply rally failure.
NO_SIGNAL with data_gap: true. Known prices and any already-established historical event evidence may remain visible; this does not mean the lifecycle is assessable.Write internal communications following company formats, including status reports, leadership updates, and newsletters.
ANanthropics/skills203k3,265 new stars in the last 7 days
GAgarrytan/gstack143k598 new stars in the last 7 days
A pre-launch checklist covering monitoring, staged rollouts and rollback plans.
ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days
PApaperclipai/paperclip119k1,966 new stars in the last 7 days
RUruvnet/RuView106k739 new stars in the last 7 days