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