price_chart
Generate an SVG candlestick chart for any IDX stock, showing volume, overlays, RSI/MACD, and support/resistance levels. Annotate zones and trends, then compare with the live Stockbit chart in your browser.
Instructions
Candlestick chart for an IDX stock, ALWAYS rendered as an SVG: daily candles with volume, optional overlays (SMA/EMA/Bollinger) and sub-panels (RSI, MACD), plus support/resistance levels drawn on.
Returns the image AND writes a .svg, reporting the path in savedTo. Use technicals for the numbers; this is the picture.
annotations draws your own levels, zones, trend lines and markers, which is how you show the evidence behind an analysis. Drawing happens on this render only — nothing is written to the Stockbit account.
Whenever this draws, it also opens the symbol's Stockbit chart in the user's own default browser so they can compare the drawing against the live chart in their own session. stockbitUrl in the result is that page; pass open_in_stockbit: false to skip opening it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Latest session, YYYY-MM-DD | |
| bars | No | Sessions to plot (default 120) | |
| from | No | Earliest session, YYYY-MM-DD | |
| theme | No | Default dark | |
| panels | No | Sub-panels below price. Default rsi. | |
| symbol | Yes | IDX ticker, e.g. BBRI | |
| browser | No | Browser to open Stockbit in, by name, e.g. "Edge". Defaults to STOCKBIT_WEB_BROWSER, else the OS default. | |
| overlays | No | Price overlays. Default sma20 + sma50. | |
| save_path | No | Where to write the .svg. Defaults to charts/ inside the store (~/.stockbit, or $STOCKBIT_STORE_DIR). | |
| annotations | No | Your own drawings on top of the chart | |
| show_levels | No | Draw support/resistance from pivot clustering. Default true. | |
| show_volume | No | Default true | |
| open_in_stockbit | No | Open the symbol's Stockbit chart in the user's browser. Default true. |