fibonacci_draw
Draw a Fibonacci study directly on the chart with exact candle coordinates and optional custom ratios. Supports retracement, extension, channel, time, fan, circle, spiral, arc and wedge variants. Prefer swing timestamps/prices returned by market_candles computations rather than visual guesses. For a highest-high/lowest-low retracement use anchorMode high-to-low or low-to-high with ref and lookback: the tool selects exact CLOSED-candle wick coordinates. Do not substitute window start/end times. 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 | ||
| 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 | ||
| 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 | ||
| points | No | ||
| symbol | No | ||
| 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. | |
| lookback | No | Number of most recent CLOSED bars for automatic anchors. Load at least this many closed bars first. | |
| 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 | ||
| anchorMode | No | Default explicit uses points. Automatic modes support fibRetracement only and require ref. | |
| 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 |