backtrader.bokeh.tabs package

Built-in tabs module.

Provides the following built-in tabs: - AnalyzerTab: Analyzer results display - ConfigTab: Configuration info display - LogTab: Log display - MetadataTab: Metadata display - SourceTab: Source code display - LiveTab: Live configuration tab

class backtrader.bokeh.tabs.AnalyzerTab[source]

Bases: BokehTab

Analyzer tab.

Displays analysis results of all analyzers in the strategy.

class backtrader.bokeh.tabs.ConfigTab[source]

Bases: BokehTab

Configuration tab.

Displays strategy parameters, data configuration and other info.

class backtrader.bokeh.tabs.LogTab[source]

Bases: BokehTab

Log tab.

Displays log information during strategy execution.

cols

Column configuration for display

__init__(app, figurepage, client=None, cols=None)[source]

Initialize log tab.

Parameters:
  • app – Bokeh application instance.

  • figurepage – Figure page instance.

  • client – Optional client instance.

  • cols – Custom column configuration for log display.

cols = ['Time', 'Level', 'Message']
class backtrader.bokeh.tabs.MetadataTab[source]

Bases: BokehTab

Metadata tab.

Displays metadata info for strategy, data, indicators, etc.

class backtrader.bokeh.tabs.SourceTab[source]

Bases: BokehTab

Source code tab.

Displays the strategy’s Python source code.

class backtrader.bokeh.tabs.LiveTab[source]

Bases: BokehTab

Live configuration tab.

Provides configuration options for live plotting mode: - Lookback adjustment - Auto-refresh interval - Filter options

class backtrader.bokeh.tabs.PerformanceTab[source]

Bases: BokehTab

Performance metrics tab.

Displays key performance metrics of the strategy, including: - Total return - Annual return - Sharpe ratio - Maximum drawdown - Win rate - Profit/loss ratio - Trade statistics

Submodules