draw_shape
Draw customizable shapes like arrows, lines, rectangles, ellipses, or text on TradingView charts using coordinates.
Instructions
Draw a shape on the chart
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"points": "<points>"
},
"name": "draw_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text for label (optional) | |
| type | Yes | Shape type | |
| style | No | Visual style {color, width, dashed} | |
| points | Yes | Coordinates [{time, price}] |