tv_drawing_add_horizontal_line
Add a horizontal line to a TradingView chart at a specified vertical position. Use yPct to set the line from top (0) to bottom (1) of the pane.
Instructions
Experimental: add a horizontal line at a chosen Y-position 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_horizontal_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yPct | No | Vertical position as a fraction of the chart pane, 0.0 = top, 1.0 = bottom (default 0.5). |