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:
BokehTabAnalyzer tab.
Displays analysis results of all analyzers in the strategy.
- class backtrader.bokeh.tabs.ConfigTab[source]¶
Bases:
BokehTabConfiguration tab.
Displays strategy parameters, data configuration and other info.
- class backtrader.bokeh.tabs.LogTab[source]¶
Bases:
BokehTabLog 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:
BokehTabMetadata tab.
Displays metadata info for strategy, data, indicators, etc.
- class backtrader.bokeh.tabs.SourceTab[source]¶
Bases:
BokehTabSource code tab.
Displays the strategy’s Python source code.
- class backtrader.bokeh.tabs.LiveTab[source]¶
Bases:
BokehTabLive configuration tab.
Provides configuration options for live plotting mode: - Lookback adjustment - Auto-refresh interval - Filter options
- class backtrader.bokeh.tabs.PerformanceTab[source]¶
Bases:
BokehTabPerformance 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