price_chart
Renders an SVG candlestick chart for IDX stocks with volume, technical overlays, RSI/MACD panels, and support/resistance levels. Draw custom trend lines and markers to support your analysis.
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.
The result counts yours and this tool's apart. autoLevels is the support/resistance this tool detected itself (show_levels, on by default); annotationsDrawn counts YOUR annotations by kind — level, zone, trend, marker — so you can confirm each one landed. annotationsNotDrawn names the ones that did not, by their index in your array and why: a date outside the plotted window, or a kind that arrived without the fields it needs. It is never silently empty about something that was skipped.
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. Same shape chartbit_draw takes. | |
| 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. |