romaco_add_drawing
Draw technical-analysis shapes on the chart using 33 templates like trendlines, Fibs, and Elliott waves. Specify anchor points with timestamps and prices.
Instructions
Draw a technical-analysis shape on the chart. Romaco-charts ships 33 templates: trendline, horizontalLine, horizontalRay, verticalLine, verticalSegment, verticalRay, parallelChannel, rectangle, brush, path, fibRetracement, fibExtension, fibCircle, fibSpiral, fibFan, longPosition, shortPosition, dateRange, ruler, volumeProfile, text, elliottWave, elliottWave3, elliottWave8, elliottWaveAny, circle, triangle, arrow, parallelogram, abcd, xabcd, gannBox, priceAlert. Required point counts vary per template (use romaco_list_templates to discover them). style, paneId, and groupId are optional. Use romaco_get_visible_candles to fetch real timestamps and prices for the anchor points. To draw inside an indicator subpanel (e.g. a horizontal line at RSI=70 inside the RSI pane), pass paneId from romaco_list_panes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional text label rendered with the drawing. | |
| style | No | Optional styling. Flat shape; mapped server-side to the chart’s nested DrawingStyle. | |
| paneId | No | Where to draw. "main" (default) for the candlestick pane, or a subpanel id from romaco_list_panes for inside-indicator drawings. | |
| points | Yes | Anchor points. Single-point templates (horizontalLine, text, priceAlert) need 1; trendline / fib / rectangle need 2; parallelChannel / elliottWave3 need 3; etc. | |
| groupId | No | Atomic group id — drawings sharing this id are added/removed together. | |
| drawingType | Yes | Template name. Run romaco_list_templates for the full catalog. |