Chart Functions

Record and inspect the values plotted in your strategy’s indicator charts:

Strategy.add_marker(name[, value, color, ...])

Adds a marker to the indicators plot that loads after a backtest.

Strategy.add_line(name, value[, color, ...])

Adds a line data point to the indicator chart.

Strategy.add_ohlc(name, open, high, low, close)

Adds an OHLC (candlestick) data point to the indicator chart.

Strategy.get_markers_df()

Returns the markers on the indicator chart as a pandas DataFrame.

Strategy.get_lines_df()

Returns a dataframe of the lines on the indicator chart.