Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can I plot another candlestick chart below the original one? #549

Answered by kernc
hz7451 asked this question in Q&A
Discussion options

I want to plot two candlestick charts, can I pass OHLC data to self.I and plot it? Thank you

You must be logged in to vote

Strategy.I() only supports overlaying or appending line and scatter plots, but Backtest.plot() does return you a Bokeh Figure object and maybe you can fiddle with it yourself:


fig = gridplot(
plots,
ncols=ncols,
toolbar_options=dict(logo=None),
toolbar_location='above',
merge_tools=True,
)
show(fig, browser=None if open_browser else 'none')
return fig

Replies: 1 comment

Comment options

Strategy.I() only supports overlaying or appending line and scatter plots, but Backtest.plot() does return you a Bokeh Figure object and maybe you can fiddle with it yourself:


fig = gridplot(
plots,
ncols=ncols,
toolbar_options=dict(logo=None),
toolbar_location='above',
merge_tools=True,
)
show(fig, browser=None if open_browser else 'none')
return fig
You must be logged in to vote
0 replies
Answer selected by hz7451
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /