get_trend_score
Calculate a stock's trend strength score from -100 to +100 using five technical indicators to identify uptrends, downtrends, or neutral market conditions.
Instructions
Get a graduated trend score (-100 to +100) for a stock.
Combines 5 daily indicators: close vs SMA20 (25%), close vs SMA50 (25%), SMA20 slope (20%), ADX direction (15%), and position in 20-day range (15%).
Classifications: strong_uptrend (>=40), uptrend (>=15), neutral (-15 to +15), downtrend (<=-15), strong_downtrend (<=-40).
Args: ticker: Stock symbol (e.g. AAPL, SPY)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |