tv_drawing_add_rectangle
Add a rectangle drawing to the TradingView chart pane by specifying edges as percentages of pane width and height, enabling visual marking of areas for analysis.
Instructions
Experimental: add a rectangle drawing on the chart pane. Best-effort.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tv_drawing_add_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1Pct | No | Left edge as fraction of pane width (default 0.2). | |
| x2Pct | No | Right edge as fraction of pane width (default 0.8). | |
| y1Pct | No | Top edge as fraction of pane height (default 0.2). | |
| y2Pct | No | Bottom edge as fraction of pane height (default 0.8). |