All checks were successful
continuous-integration/drone/push Build is passing
Coverage: 19% → 67% of API endpoints (88/131) market-analysis: 5 → 15 endpoints (all 14 technical indicators + historical) - Added: ADX, Stochastic, Keltner, Donchian, Aroon, CCI, Fib, A/D, Cones, VWAP - Added confluence/divergence analysis guidance fundamental-analysis: 5 → 12 endpoints - Added: summary (all-in-one), CAPM, Sortino, Omega, estimates, share-statistics, institutional, dividends, calendar/earnings - Added institutional ownership and earnings catalyst flagging sentiment-analysis: 5 → 16 endpoints - Added: reddit-sentiment, social-sentiment, shorts/ftd, darkpool/otc, share-statistics, institutional, congress/trades - Restructured as smart money vs retail noise hierarchy macro-analysis: 6 → 23 endpoints - Added: treasury-rates, effr, sofr, spreads, hqm, tips-yields, pce, gdp, unemployment, money-measures, cli, sloos, nonfarm-payrolls, empire-state, central-bank-holdings, fomc-documents, sp500-multiples - Added business cycle positioning framework trade-analyze: updated data collection to use /summary endpoint AGENTS.md (all 4 debate agents): updated for sessions_spawn protocol SOUL.md (all 4): removed unavailable memory_search, REPLY_SKIP refs deploy.sh: fixed nvm loading for SSH
103 lines
3.5 KiB
Markdown
103 lines
3.5 KiB
Markdown
---
|
|
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
|