Drawing / Reference
alerta.plotshape
TradingView-compatible spelling: plotshape, runs without warnings
Plots visual shapes on the chart based on a condition.
alerta.plotshape(series, { shape, location, color, text, size, transp }) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
series | series bool | Yes | — | Where to draw: true, or a price with location.absolute; false/na draws nothing. |
options | object | Not specified | — | Styling config (style: "label_up"/"label_down"/"triangle_up", textcolor, transp, etc). |
Returns
voidExample
alerta.plotshape
const cross = crossover(sma(close, 10), sma(close, 20))plotshape(cross, { shape: "triangle_up", location: "belowbar", color: "green" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.