--- name: market-analysis description: Professional technical analysis — trend structure, momentum, volatility regime, volume profile, support/resistance via openbb-invest-api user-invocable: true metadata: { "openclaw": { "emoji": "📊", "requires": { "bins": ["curl"] } } } --- # Market Analysis (Technical) Generate a professional-grade technical analysis report. Think like a prop desk trader. ## Data Collection Fetch ALL of the following using `exec` tool. Run them in a single command joined by `&&`: ```bash BASE=https://invest-api.k8s.home # Core technicals (RSI, MACD, SMA, EMA, Bollinger) curl -sk "$BASE/api/v1/stock/{TICKER}/technical" # Trend system curl -sk "$BASE/api/v1/stock/{TICKER}/technical/ichimoku" # Trend strength curl -sk "$BASE/api/v1/stock/{TICKER}/technical/adx" # Overbought/oversold oscillator curl -sk "$BASE/api/v1/stock/{TICKER}/technical/stoch" # Volatility curl -sk "$BASE/api/v1/stock/{TICKER}/technical/atr" curl -sk "$BASE/api/v1/stock/{TICKER}/technical/kc" curl -sk "$BASE/api/v1/stock/{TICKER}/technical/cones" # Volume analysis curl -sk "$BASE/api/v1/stock/{TICKER}/technical/obv" curl -sk "$BASE/api/v1/stock/{TICKER}/technical/ad" curl -sk "$BASE/api/v1/stock/{TICKER}/technical/vwap" # Support/resistance curl -sk "$BASE/api/v1/stock/{TICKER}/technical/fib" curl -sk "$BASE/api/v1/stock/{TICKER}/technical/donchian" # Trend direction change curl -sk "$BASE/api/v1/stock/{TICKER}/technical/aroon" # Cyclical analysis curl -sk "$BASE/api/v1/stock/{TICKER}/technical/cci" # Price history for context curl -sk "$BASE/api/v1/stock/{TICKER}/historical?days=180" ``` ## Report Structure ``` ## {TICKER} Technical Analysis — {date} ### Trend Structure - Primary trend: [uptrend / downtrend / range-bound] - SMA 20/50/200 alignment: [bullish stacking / bearish stacking / tangled] - Ichimoku: price vs cloud, TK cross, Chikou confirmation - ADX: {value} — trend strength [no trend <20 / trending 20-40 / strong >40] - Aroon: up {value} / down {value} — [new uptrend / new downtrend / consolidation] ### Momentum - RSI(14): {value} — [overbought >70 / oversold <30 / divergence?] - MACD: histogram {value}, signal cross [bullish/bearish], momentum [accelerating/decelerating] - Stochastic: %K {value}, %D {value} — [overbought >80 / oversold <20 / cross?] - CCI: {value} — [overbought >100 / oversold <-100 / neutral] ### Volatility Regime - ATR(14): {value} — vs 20-day avg [expanding/contracting] - Bollinger bandwidth: [squeeze / normal / expansion] - Keltner Channels: price position [above upper / within / below lower] - Volatility Cones: current IV vs historical quantiles [cheap / fair / expensive] ### Volume Profile - OBV trend: [confirming price / bearish divergence / bullish divergence] - A/D Line: [accumulation / distribution / neutral] - VWAP: price vs VWAP [above = bullish bias / below = bearish bias] ### Key Levels - Fibonacci retracements: 23.6% ${}, 38.2% ${}, 50% ${}, 61.8% ${} - Donchian: upper ${}, lower ${}, midline ${} - Nearest support: ${} - Nearest resistance: ${} ### Signal: [BULLISH / BEARISH / NEUTRAL] ### Confidence: {1-10} ### Timeframe: [intraday / swing / position] ### Key Risk: {one-line, e.g. "bearish divergence on RSI + volume declining"} ``` ## Rules - Use ONLY data from API responses — never fabricate indicator values - If an endpoint fails, note "Data unavailable" and continue - Look for **confluence** — multiple indicators agreeing strengthens the signal - Look for **divergences** — price vs RSI, price vs OBV, price vs A/D - Keep under 500 words