Package for plotting series-like data.

Decorators

@background()

decorator

Overloads

@background
(title, color, outline_color, outline_style, outline_width) -> None
Declares attributes of a background 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.
Example
@plot.background()
def Main(self):
    return plot.Background(color=color.YELLOW)
See also: Background

@columns()

decorator

Overloads

@columns
(id, title, color, base_value, rel_width, display_options) -> None
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.
Example
@plot.line()
@plot.columns(line_width=2)
@plot.columns(color=color.YELLOW)
# @plot.line() - for the fourth plot can be omitted
def Main(self):
    return self.open[0], self.high[0], self.low[0], self.close[0]
See also: Columns

@fill()

decorator

Overloads

@fill
(id1, id2, id, title, color) -> None
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.
Example
@plot.line('plot1')
@plot.line('plot2')
@plot.fill('plot1', 'plot2')
def Main(self):
    return self.open[0], self.high[0], plot.Fill()
See also: Fill

@histogram()

decorator

Overloads

@histogram
(id, title, color, line_width, base_value, display_options) -> None
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.
Example
@plot.line()
@plot.histogram(line_width=2)
@plot.histogram(color=color.YELLOW)
# @plot.line() - for the fourth plot can be omitted
def Main(self):
    return self.open[0], self.high[0], self.low[0], self.close[0]
See also: Histogram

@line()

decorator

Overloads

@line
(id, title, color, line_style, line_width, continuous, display_options) -> None
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.
Example
@plot.line()
@plot.line(line_width=2)
@plot.line(color=color.YELLOW)
# @plot.line() - for the fourth plot can be omitted
def Main(self):
    return self.open[0], self.high[0], self.low[0], self.close[0]
See also: Line

@marker()

decorator

Overloads

@marker
(title, color, text, style, position, size, display_options) -> None
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.
Example
@plot.line()
@plot.marker(line_width=2)
@plot.marker(color=color.YELLOW)
# @plot.line() - for the fourth plot can be omitted
def Main(self):
    return self.open[0], self.high[0], self.low[0], self.close[0]
See also: Marker

@steps()

decorator

Overloads

@steps
(id, title, color, line_width, display_options) -> None
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.
Example
@plot.line()
@plot.steps(line_width=2)
@plot.steps(color=color.YELLOW)
# @plot.line() - for the fourth plot can be omitted
def Main(self):
    return self.open[0], self.high[0], self.low[0], self.close[0]
See also: Steps

Types

Background

type Class which objects represent an element of background plot.

Fields

color
indie.Optional[indie.Color]
Color of the plot element.
outline_left
bool
Whether to draw left outline.
outline_right
bool
Whether to draw right outline.
offset
int
Offset of the plot element.

Methods

__init__
(color, outline_left, outline_right, offset) -> None
Class constructor (initializer for the data type).
See also: @background()

Columns

type Class which objects represent an element of columns plot.

Fields

value
float
Value of the plot element.
color
indie.Optional[indie.Color]
Color of the plot element.
offset
int
Offset of the plot element.

Methods

__init__
(value, color, offset) -> None
Class constructor (initializer for the data type).
See also: @columns()

ColumnsDisplayOptions

type Class with options that control how to display plot data on a chart.

Methods

__init__
(*, pane, status_line, price_label) -> None
Class constructor (initializer for the data type).

Fill

type Class which objects represent an element of fill plot.

Fields

color
indie.Optional[indie.Color]
Color of the plot element.
offset
int
Offset of the plot element.

Methods

__init__
(color, offset) -> None
Class constructor (initializer for the data type).
See also: @fill()

Histogram

type Class which objects represent an element of histogram plot.

Fields

value
float
Value of the plot element.
color
indie.Optional[indie.Color]
Color of the plot element.
offset
int
Offset of the plot element.

Methods

__init__
(value, color, offset) -> None
Class constructor (initializer for the data type).
See also: @histogram()

HistogramDisplayOptions

type Class with options that control how to display plot data on a chart.

Methods

__init__
(*, pane, status_line, price_label) -> None
Class constructor (initializer for the data type).

Line

type Class which objects represent an element of line plot.

Fields

value
float
Value of the plot element.
color
indie.Optional[indie.Color]
Color of the plot element.
offset
int
Offset of the plot element.

Methods

__init__
(value, color, offset) -> None
Class constructor (initializer for the data type).
See also: @line()

LineDisplayOptions

type Class with options that control how to display plot data on a chart.

Methods

__init__
(*, pane, status_line, price_label) -> None
Class constructor (initializer for the data type).

Marker

type Class which objects represent an element of marker plot.

Fields

value
float
Value of the plot element.
color
indie.Optional[indie.Color]
Color of the plot element.
text
indie.Optional[str]
Marker text.
offset
int
Offset of the plot element.

Methods

__init__
(value, color, text, offset) -> None
Class constructor (initializer for the data type).
See also: @marker()

MarkerDisplayOptions

type Class with options that control how to display plot data on a chart.

Methods

__init__
(*, pane, status_line, price_label) -> None
Class constructor (initializer for the data type).

Steps

type Class which objects represent an element of steps plot.

Fields

value
float
Value of the plot element.
color
indie.Optional[indie.Color]
Color of the plot element.
offset
int
Offset of the plot element.

Methods

__init__
(value, color, offset) -> None
Class constructor (initializer for the data type).
See also: @steps()

StepsDisplayOptions

type Class with options that control how to display plot data on a chart.

Methods

__init__
(*, pane, status_line, price_label) -> None
Class constructor (initializer for the data type).

Enums

marker_position

enum Enum-like class with constants of marker positions.

Static fields

ABOVE
indie.plot.marker_position
Built-in marker position constant that determines how the marker is rendered.
BELOW
indie.plot.marker_position
Built-in marker position constant that determines how the marker is rendered.
LEFT
indie.plot.marker_position
Built-in marker position constant that determines how the marker is rendered.
RIGHT
indie.plot.marker_position
Built-in marker position constant that determines how the marker is rendered.
CENTER
indie.plot.marker_position
Built-in marker position constant that determines how the marker is rendered.

marker_style

enum Enum-like class with constants of marker styles.

Static fields

NONE
indie.plot.marker_style
Built-in marker style constant that determines how the marker is rendered.
CIRCLE
indie.plot.marker_style
Built-in marker style constant that determines how the marker is rendered.
LABEL
indie.plot.marker_style
Built-in marker style constant that determines how the marker is rendered.
CROSS
indie.plot.marker_style
Built-in marker style constant that determines how the marker is rendered.