Skip to main content

Function: shape()

shape(title, on, color?, price?): void

Show the declared shape title on this bar when on. A shape is a series like a plot: it carries a value on the bars it fires on (price, else the close) and nothing on the others. price is required for ShapeLocation.Absolute; color overrides the declared colour for this bar (0 = declared colour).

Parameters​

title​

string

on​

bool

color?​

i32 = 0

price?​

f64 = NaN

Returns​

void