MCPcopy Index your code
hub / github.com/kernc/backtesting.py / new_indicator_figure

Function new_indicator_figure

backtesting/_plotting.py:298–307  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

296 ('Volume', '@Volume{0,0}')]
297
298 def new_indicator_figure(**kwargs):
299 kwargs.setdefault('height', _INDICATOR_HEIGHT)
300 fig = new_bokeh_figure(x_range=fig_ohlc.x_range,
301 active_scroll='xwheel_zoom',
302 active_drag='xpan',
303 **kwargs)
304 fig.xaxis.visible = False
305 fig.yaxis.minor_tick_line_color = None
306 fig.yaxis.ticker.desired_num_ticks = 3
307 return fig
308
309 def set_tooltips(fig, tooltips=(), vline=True, renderers=()):
310 tooltips = list(tooltips)

Callers 5

_plot_equity_sectionFunction · 0.85
_plot_drawdown_sectionFunction · 0.85
_plot_pl_sectionFunction · 0.85
_plot_volume_sectionFunction · 0.85
_plot_indicatorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected