TradeZoro
Notifications

Reference

Plots and chart colors

Everything that draws one value per bar. Call these at the top level of your script.

barcolor(color, offset=0, editable=true, show_last=na, title="", display="all")

Colors the candles. Call at the top level of the script.

Returns: nothing

ParameterTypeNotes
colorcolor
offsetintDefault 0
editableboolDefault true
show_lastintDefault na
titlestringDefault ""
displaystringDefault "all"

bgcolor(color, offset=0, editable=true, show_last=na, title="", display="all")

Colors the chart background of each bar. Call at the top level of the script.

Returns: nothing

ParameterTypeNotes
colorcolor
offsetintDefault 0
editableboolDefault true
show_lastintDefault na
titlestringDefault ""
displaystringDefault "all"

fill(plot1, plot2, color=na, title="", editable=true, show_last=na, fillgaps=false, display="all")

Fills the space between two plots or two hlines. Call at the top level of the script.

Returns: nothing

ParameterTypeNotes
plot1any
plot2any
colorcolorDefault na
titlestringDefault ""
editableboolDefault true
show_lastintDefault na
fillgapsboolDefault false
displaystringDefault "all"

hline(price, title="", color=#787b86, linestyle="dashed", linewidth=1, editable=true, display="all")

Draws a horizontal line at a fixed price. Call at the top level of the script.

Returns: hlineid

ParameterTypeNotes
pricenum
titlestringDefault ""
colorcolorDefault #787b86
linestylestringDefault "dashed"
linewidthintDefault 1
editableboolDefault true
displaystringDefault "all"

plot(series, title="", color=na, linewidth=1, style="line", trackprice=false, histbase=0, offset=0, join=false, editable=true, show_last=na, display="all", format="", precision=na)

Draws a series as a line (or histogram, columns, circles, area...). Call at the top level of the script.

Returns: plotid

ParameterTypeNotes
seriesnum
titlestringDefault ""
colorcolorDefault na
linewidthintDefault 1
stylestringDefault "line"
trackpriceboolDefault false
histbasefloatDefault 0
offsetintDefault 0
joinboolDefault false
editableboolDefault true
show_lastintDefault na
displaystringDefault "all"
formatstringDefault ""
precisionintDefault na

plotarrow(series, title="", colorup=#089981, colordown=#f23645, offset=0, minheight=5, maxheight=100, editable=true, show_last=na, display="all")

Draws up arrows for positive values and down arrows for negative values. Call at the top level of the script.

Returns: nothing

ParameterTypeNotes
seriesnum
titlestringDefault ""
colorupcolorDefault #089981
colordowncolorDefault #f23645
offsetintDefault 0
minheightintDefault 5
maxheightintDefault 100
editableboolDefault true
show_lastintDefault na
displaystringDefault "all"

plotbar(open, high, low, close, title="", color=na, editable=true, show_last=na, display="all")

Draws OHLC bars. Call at the top level of the script.

Returns: nothing

ParameterTypeNotes
opennum
highnum
lownum
closenum
titlestringDefault ""
colorcolorDefault na
editableboolDefault true
show_lastintDefault na
displaystringDefault "all"

plotcandle(open, high, low, close, title="", color=na, wickcolor=na, editable=true, show_last=na, bordercolor=na, display="all")

Draws candles. Call at the top level of the script.

Returns: nothing

ParameterTypeNotes
opennum
highnum
lownum
closenum
titlestringDefault ""
colorcolorDefault na
wickcolorcolorDefault na
editableboolDefault true
show_lastintDefault na
bordercolorcolorDefault na
displaystringDefault "all"

plotchar(series, title="", char="•", location="abovebar", color=na, offset=0, text="", textcolor=na, editable=true, size="auto", show_last=na, display="all")

Draws a character on bars where series is true (or not na). Call at the top level of the script.

Returns: nothing

ParameterTypeNotes
seriesany
titlestringDefault ""
charstringDefault "•"
locationstringDefault "abovebar"
colorcolorDefault na
offsetintDefault 0
textstringDefault ""
textcolorcolorDefault na
editableboolDefault true
sizestringDefault "auto"
show_lastintDefault na
displaystringDefault "all"

plotshape(series, title="", style="circle", location="abovebar", color=na, offset=0, text="", textcolor=na, editable=true, size="auto", show_last=na, display="all")

Draws a shape on bars where series is true (or not na). Call at the top level of the script.

Returns: nothing

ParameterTypeNotes
seriesany
titlestringDefault ""
stylestringDefault "circle"
locationstringDefault "abovebar"
colorcolorDefault na
offsetintDefault 0
textstringDefault ""
textcolorcolorDefault na
editableboolDefault true
sizestringDefault "auto"
show_lastintDefault na
displaystringDefault "all"

Education only. Not financial advice. Examples are teaching samples, not trading results.

Zscript is coming soon

The manual opens when Zscript launches.

Back to home