drawing_add
Draw measured geometry or explain it with text, note, callout or emoji. Points are {time, price} in chart coordinates — time in seconds, matching the candle timestamps a data handle reports. A horizontal line needs one point; a trendline or box needs two. Measured anchors must be copied from a tool result — a summary's max with its maxAt, a crossing with its time — never read off your own prose or carried over from a different computation. A note/text position or callout second anchor is layout, not a measured price; place it in spare chart space. The result echoes back what was drawn: check it against the figures you are about to quote, because a line that disagrees with the paragraph beside it is worse than no line. Changes the chart you are building; finish with chart_link, or analysis_prepare for a sharing draft that needs human review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | A handle from market_candles. Measured anchors are checked against its window. A callout checks its first/event anchor; its second/label anchor and note/text positions are layout, not measured prices. Pass it whenever coordinates came from a computation. | |
| fill | No | Palette fill colour, or “none”. | |
| text | No | Required for text/note/callout: concise words, with for short lines. For emoji: one Unicode emoji, e.g. 👀 or ⚠️. Max 500 characters. | |
| tool | Yes | A tool id from catalog_search with kind "drawing" — e.g. text, note, callout, emoji, arrow, ellipse, priceZone, horizontalLine, trendLine, rectangle, fibRetracement, longPosition or shortPosition. Prefer position_draw_on_chart for an entry/stop/target box. Separators and capitalisation are forgiven; an id that names no tool is refused. | |
| color | No | A palette name. “up” and “down” are the reserved green and red — they assert a bullish or bearish claim, so use them for position zones and not for a measurement. | |
| width | No | Stroke width in pixels, 1 to 6. | |
| levels | No | Custom Fibonacci ratios. Example: [0, 0.382, 0.5, 0.618, 0.786, 1, 1.272, 1.618]. | |
| points | Yes | ||
| symbol | No | Defaults to the charted symbol. | |
| opacity | No | Strength of the whole drawing, 0.1 to 1. Fade a level that is context rather than the decision. | |
| arrowEnd | No | ||
| fontSize | No | Size 9–160px, normally 12–16 for readable text. Emoji render at twice this size. | |
| textBold | No | ||
| wrapText | No | Default true: wrap long annotation lines for readability. False only for an explicitly requested single-line label. | |
| lineStyle | No | ||
| showStats | No | ||
| textColor | No | ||
| arrowStart | No | ||
| extendLeft | No | ||
| showLabels | No | ||
| showPrices | No | ||
| showRatios | No | ||
| extendRight | No | ||
| fillOpacity | No | Shape fill opacity from 0 to 1. | |
| ratioFormat | No | ||
| labelPosition | No | ||
| labelVertical | No |