API documentation for tradeexecutor.analysis.grid_search.visualise_grid_search_equity_curves Python function.

visualise_grid_search_equity_curves(results, name=None, benchmark_indexes=None, height=1200, colour='rgba(160, 160, 160, 0.5)')[source]#

Draw multiple equity curves in the same chart.

  • See how all grid searched strategies work

  • Benchmark against buy and hold of various assets

  • Benchmark against hold all cash

Example for a single trading pair strategy:

  • results (List[GridSearchResult]) – Results from the grid search.

  • benchmark_indexes (Optional[DataFrame]) –

    List of other asset price series displayed on the timeline besides equity curve.

    DataFrame containing multiple series.

    • Asset name is the series name.

    • Setting colour for pd.Series.attrs allows you to override the colour of the index

  • height – Chart height in pixels

  • start_at – When the backtest started

  • end_at – When the backtest ended

  • additional_indicators

    Additional technical indicators drawn on this chart.

    List of indicator names.

    The indicators must be plotted earlier using state.visualisation.plot_indicator().

    Note: Currently not very useful due to Y axis scale

  • name (Optional[str]) –

Return type: