BACK TO CLAUDE SKILLS
◈
measure_trend_strength
Chart AnalysisADXTrend
INSTALLATION
$python -c "exec(open('measure_trend_strength.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Calculates a simplified version of the Average Directional Index (ADX) by smoothing the true range series over the configured period. Returns a categorical label — "Strong" (ADX > 25), "Moderate" (20-25), or "Weak" (< 20) — rather than the raw numeric value to simplify downstream prompt generation.
A Weak ADX reading signals that the current trend has insufficient momentum to sustain a directional move, which is critical context for signal generation: a buy signal in a Weak trend environment should carry a lower confidence score than the same signal in a Strong trend environment. Wire this function's output into `rate_signal_quality` for automatic confidence adjustment.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryChart Analysis
ComplexityBeginner
LanguagePython 3.10+
TagsADX, Trend
[ ASK CLAUDE ]
Ask AI about this skill before installing it.
[ RELATED SKILLS ]