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.
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). |