get_support_resistance
Identify key support and resistance levels for stocks by analyzing swing highs/lows, detecting pivot points, clustering nearby levels, and ranking by strength to inform trading decisions.
Instructions
Find key support and resistance levels for a stock from swing highs/lows.
Detects pivot points, clusters nearby levels, counts touches, and ranks by strength.
Args: ticker: Stock symbol (e.g. AAPL, SPY) lookback: Number of daily bars to analyze (default 120 = ~6 months) max_levels: Maximum levels per side — support and resistance (default 5)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | ||
| lookback | No | ||
| max_levels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |