export_plot_as_dataframe#

API documentation for tradeexecutor.visual.technical_indicator.export_plot_as_dataframe Python function.

export_plot_as_dataframe(plot, start_at=None, end_at=None, correct_look_ahead_bias_negation=True)[source]#

Convert visualisation state to Plotly friendly df.

Parameters:
  • plot (Plot) – Internal Plot object from the strategy state.

  • start_at (Optional[Timestamp]) –

    Crop range.

    Inclusive.

  • end_at (Optional[Timestamp]) –

    Crop range

    Inclusive.

  • correct_look_ahead_bias_negation

    How many candles to shift the data if the source plot was adjusted for the look ahead bias.

    See tradeexecutor.state.visualisation.RecordingTime for more information.

Return type:

DataFrame