BACK TO CLAUDE SKILLS
◈
detect_support_resistance
Chart AnalysisAnalysisS&R
INSTALLATION
$python -c "exec(open('detect_support_resistance.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Scans historical high and low arrays using a rolling local-extremum algorithm with configurable lookback (`n` bars on each side). A price is classified as support if it is the minimum low within a ±n window; resistance if it is the maximum high. Results are deduplicated and returned as sorted float lists.
The lookback period `n` directly controls sensitivity: smaller values (e.g. 3) detect many minor levels; larger values (e.g. 10) return only major structural zones. For daily timeframe crypto analysis, `n=5` strikes a balance that catches swing-level S/R without noise from intraday wicks.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryChart Analysis
ComplexityBeginner
LanguagePython 3.10+
TagsAnalysis, S&R
[ ASK CLAUDE ]
Ask AI about this skill before installing it.