Declares attributes of a columns plot of an indicator. Can be applied only to the Main entry point of the indicator. When applied, it must match with the result of the Main indicator entry point.
id
indie.Optional[str]
default:None
A unique identifier of plot, reserved for internal use.
title
indie.Optional[str]
default:None
Human readable title which is visible in the indicator’s Settings panel.
@plot.line()@plot.columns(line_width=2)@plot.columns(color=color.YELLOW)# @plot.line() - for the fourth plot can be omitteddefMain(self):return self.open[0], self.high[0], self.low[0], self.close[0]
Declares attributes of a fill plot of an indicator. Can be applied only to the Main entry point of the indicator. When applied, it must match with the result of the Main indicator entry point.
id1
str
required
Identifier of the first plot to which the fill is applied.
id2
str
required
Identifier of the second plot to which the fill is applied.
id
indie.Optional[str]
default:None
A unique identifier of plot, reserved for internal use.
title
indie.Optional[str]
default:None
Human readable title which is visible in the indicator’s Settings panel.
Declares attributes of a histogram plot of an indicator. Can be applied only to the Main entry point of the indicator. When applied, it must match with the result of the Main indicator entry point.
id
indie.Optional[str]
default:None
A unique identifier of plot, reserved for internal use.
title
indie.Optional[str]
default:None
Human readable title which is visible in the indicator’s Settings panel.
@plot.line()@plot.histogram(line_width=2)@plot.histogram(color=color.YELLOW)# @plot.line() - for the fourth plot can be omitteddefMain(self):return self.open[0], self.high[0], self.low[0], self.close[0]
Declares attributes of a line plot of an indicator. Can be applied only to the Main entry point of the indicator. It is optional, so may be omitted in some simple use cases and plot will be rendered using defaults. When applied, it must match with the result of the Main indicator entry point.
id
indie.Optional[str]
default:None
A unique identifier of plot which is used in cases when a @plot.fill() should be applied between some of the two plots of an indicator.
title
indie.Optional[str]
default:None
Human readable title which is visible in the indicator’s Settings panel.
color
indie.Optional[indie.Color]
default:None
Color of the plot on a chart. This color can be overwritten if the plot is a multicolored one. Example of an indicator with a multicolored plot is Awesome Oscillator (AO).
line_style
indie.line_style
default:indie.line_style.SOLID
Style of the line. It is represented as enum value of type line_style.
line_width
int
default:1
Width of the line.
continuous
bool
default:False
Whether the plot should be continuous when the indicator has NaN values.
@plot.line()@plot.line(line_width=2)@plot.line(color=color.YELLOW)# @plot.line() - for the fourth plot can be omitteddefMain(self):return self.open[0], self.high[0], self.low[0], self.close[0]
Declares attributes of a marker plot of an indicator. Can be applied only to the Main entry point of the indicator. When applied, it must match with the result of the Main indicator entry point.
title
indie.Optional[str]
default:None
Human readable title which is visible in the indicator’s Settings panel.
color
indie.Optional[indie.Color]
default:None
Color of the plot.
text
indie.Optional[str]
default:None
Default value for the text label of markers.
style
indie.plot.marker_style
default:indie.plot.marker_style.CIRCLE
Determines how the plot data is rendered. It is represented as enum value of type marker_style.
@plot.line()@plot.marker(line_width=2)@plot.marker(color=color.YELLOW)# @plot.line() - for the fourth plot can be omitteddefMain(self):return self.open[0], self.high[0], self.low[0], self.close[0]
Declares attributes of a steps plot of an indicator. Can be applied only to the Main entry point of the indicator. When applied, it must match with the result of the Main indicator entry point.
id
indie.Optional[str]
default:None
A unique identifier of plot, reserved for internal use.
title
indie.Optional[str]
default:None
Human readable title which is visible in the indicator’s Settings panel.
@plot.line()@plot.steps(line_width=2)@plot.steps(color=color.YELLOW)# @plot.line() - for the fourth plot can be omitteddefMain(self):return self.open[0], self.high[0], self.low[0], self.close[0]