BACK TO CLAUDE SKILLS
◈
find_chart_patterns
Chart AnalysisPatternAnalysis
INSTALLATION
$python -c "exec(open('find_chart_patterns.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Detects classic reversal patterns by analyzing sequences of local price peaks (highs) and troughs (lows). Currently implements double-top detection by checking whether the two most recent peaks are within 3% of each other — a threshold that accounts for normal price variance while filtering out coincidental proximity.
The pattern list is designed to be extensible: add head-and-shoulders detection by checking for a higher middle peak flanked by two roughly equal lower peaks, or double-bottom by applying the same logic to troughs. Return values are string labels that Claude can interpret and include in a natural language narrative.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryChart Analysis
ComplexityBeginner
LanguagePython 3.10+
TagsPattern, Analysis
[ ASK CLAUDE ]
Ask AI about this skill before installing it.