/price-analysis
Cosa fa. Analizza il grafico: trend, pattern, supporti/resistenze e indicatori (RSI, MACD, medie).
Quando usarlo. Per valutare timing e momentum, non i fondamentali.
Argomenti. TICKER [1d-30d | 1m-12m | 1y-10y | all]
Esempio. /price-analysis NVDA 6m
Cosa restituisce. Lettura del grafico con livelli chiave e indicatori, spesso con grafico annotato.
Come funziona
Sezione intitolata “Come funziona”Quando lanci /price-analysis, Dexter non esegue codice fisso: invia all’AI la prompt qui sotto — il segnaposto {arg} viene sostituito con ciò che scrivi dopo il comando — e l’agente la esegue chiamando da sé gli strumenti necessari. Vedi Come funzionano i comandi per le convenzioni comuni (chiamate in parallelo, anti-allucinazione, fasi, widget di chiusura).
Strumenti che può usare: resolve_ticker, get_technical_indicators, get_stock_performance, portfolio_get, get_stock_prices, get_stock_prices_intraday, memory_update, render_price_chart, show_ticker_link.
Flusso/visualizzazione: apre con un grafico annotato dei prezzi (render_price_chart); chiude con i pulsanti di dettaglio (show_ticker_link); salva un appunto in memoria (memory_update).
Prompt completa
Sezione intitolata “Prompt completa”È la prompt esatta inviata all’AI quando usi il comando (sostituendo {arg}).
Technical analysis of the ticker in "{arg}".
## Parse timeframeExtract the TICKER and an optional TIMEFRAME from "{arg}" (if the ticker is a company name, call resolve_ticker first):- "Nd" → days view, N clamped to 1-30 (intraday-led)- "Nm" → months view, N clamped to 1-12- "Ny" → years view, N clamped to 1-10- "all" or "max" → full available history- no timeframe → YOU pick a sensible default (≈6 months) for a balanced readCompute ISO `from`/`to` (`to` = today; for "all" use a far-past `from`, e.g. 2000-01-01).If the asset has LESS history than requested (e.g. a recently-listed coin like OCT with ~3 months), analyze the available history and say so — never report failure for missing older data; the chart auto-trims to whatever exists.
## Data Gathering (all in parallel) — scale the windows to the TIMEFRAME- get_technical_indicators (RSI 14/7, MACD, SMA 20/50/200, EMA 12/26, avg volume, Bollinger Bands)- get_stock_performance (1D/1W/1M/3M/YTD/1Y)- portfolio_get- Price history matched to the view: • DAYS (1-30d): get_stock_prices(interval=day, last max(N,40) sessions) + get_stock_prices_intraday(interval="1h", limit=48) — intraday is the focus. • MONTHS (1-12m): get_stock_prices(interval=day, N months) + get_stock_prices(interval=week, ~1 year) for context. • YEARS (1-10y): get_stock_prices(interval=week, N years). • ALL: get_stock_prices(interval=week, full available range). • DEFAULT (no timeframe): get_stock_prices(interval=day, 6 months) + get_stock_prices(interval=week, 1 year) + get_stock_prices_intraday(interval="1h", limit=48).
## Analysis### Trend- Trend within the analysed window; daily vs weekly alignment or divergence.- SMA alignment (SMA20/50/200), active crossovers.
### Momentum- RSI: level, divergence vs price.- MACD: histogram direction, signal line crossover.
### Support & Resistance- Key S/R clustered (±2%) from the analysed window's price history. 52w range position, Bollinger Band.
### Intraday & Recent Session (last 48h hourly — only for days/months/default views; SKIP for years/all)- Gap vs prior close: filled or open?- Tightest S/R from recent intraday highs/lows.- Session direction: first 2h vs last 2h. Morning reversal or continuation?- Intraday trend vs daily: aligned (confirmation) or diverging (potential reversal).- Note: intraday data covers market hours only.
### Entry/Exit Zones- Optimal entry zone with stop-loss. 2-3 upside targets.- Intraday precision (short views): use hourly lows/highs as tighter entry/stop reference.
If user holds {arg}: contextualize S/R levels vs cost basis.Output: | Indicator | Value | Signal |Verdict: direction over a horizon matching the TIMEFRAME, confidence, key level to watch.Call memory_update first. Then START your response by calling render_price_chart for {arg} over the SAME window you analysed (from/to), interval="week" for years/all views else "day", annotating key support (kind="support"), resistance (kind="resistance") and notable moves/crossovers (kind="event") — it renders the chart at the TOP, before any prose. THEN write the full report below it. Call show_ticker_link as the final action.