
Downtrend Duration Analyzer
This pulls historical price data through FMP's API and identifies peak to trough downtrends, then generates interactive histograms showing how long corrections typically last across different sectors and market caps. You'd use it when building mean reversion strategies and need realistic holding period estimates, or when a trader asks how long tech pullbacks usually take to recover. The segmentation by market cap is the useful bit here since mega caps consistently show faster recovery than small caps in the output. It spits out JSON with percentile data, markdown reports, and Plotly visualizations you can actually filter and interact with. Solid for setting stop loss timeouts based on historical norms rather than guessing.
- skills.sh installs
- 3.3K
- GitHub stars
- 3.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add tradermonty/claude-trading-skills --skill downtrend-duration-analyzer --agent claude-codeInstalls into .claude/skills of the current project.
Files
Downtrend Duration Analyzer
Overview
Analyze historical price data to identify downtrend periods (peak-to-trough) and build statistical distributions of correction durations. Generate interactive HTML visualizations with histograms segmented by sector and market cap to help traders understand typical recovery timeframes and set realistic expectations for mean reversion strategies.
When to Use
- Trader asks about typical correction lengths for a sector or market cap tier
- User wants to understand historical drawdown recovery times
- Building mean reversion or pullback strategies that need realistic holding period estimates
- Comparing correction behavior across different market segments
- Setting stop-loss timeouts or position holding period limits
Prerequisites
- Python 3.9+
- FMP API key (set
FMP_API_KEYenvironment variable or use--api-key) - Required packages:
requests,pandas,numpy(standard data analysis stack)
Workflow
Step 1: Fetch Historical Price Data
Run the analysis script to fetch OHLC data for a universe of stocks and identify downtrend periods.
Sponsors
Details
- Repository
- github.com/tradermonty/claude-trading-skills
- Categories
- Frontend Development, Finance & Trading
- First seen
- Jun 3, 2026
More from tradermonty/claude-trading-skills
All 54- Ibd Distribution Day Monitor3.2K
- Parabolic Short Trade Planner3.1K
- Us Stock Analysis5.8K
- Backtest Expert4.5K
- Market News Analyst4.4K
- Technical Analyst4.3K
- Market Environment Analysis4.2K
- Position Sizer4.1K
- Portfolio Manager4.1K
- Value Dividend Screener4K
- Macro Regime Detector3.9K
- Options Strategy Advisor3.9K
- Canslim Screener3.8K
- Institutional Flow Tracker3.8K
- Earnings Calendar3.7K
- Economic Calendar Fetcher3.7K
- Sector Analyst3.7K
- Stanley Druckenmiller Investment3.7K
- Vcp Screener3.7K
- Market Breadth Analyzer3.7K
- Edge Strategy Reviewer3.6K
- Finviz Screener3.6K
- Edge Strategy Designer3.6K
- Pair Trade Screener3.6K