backtrader.bokeh.utils package¶
Utility functions module.
- backtrader.bokeh.utils.get_datanames(strategy)[源代码]¶
Get names of all data sources in strategy.
- 参数:
strategy -- Strategy instance
- 返回:
List of data source names
- 返回类型:
- backtrader.bokeh.utils.get_strategy_label(strategy)[源代码]¶
Get strategy label.
- 参数:
strategy -- Strategy instance
- 返回:
Strategy label
- 返回类型:
- backtrader.bokeh.utils.sanitize_source_name(name)[源代码]¶
Sanitize data source name, remove illegal characters.
- 参数:
name -- Original name
- 返回:
Sanitized name
- 返回类型: