Skip to content

Plot candlestick chart with indicators #289

Answered by polakowo
julian-dotcom asked this question in Q&A
Discussion options

You must be logged in to vote

Every plotting function returns a figure, which you can provide to another plotting function (similar to matplotlib). On how to set up individual traces please refer to the Plotly documentation.

fig = ohlcv_df.vbt.ohlcv.plot()
df['vwap'].vbt.plot(fig=fig, trace_kwargs=dict(line_color='blue'))
df['vwap_upper'].vbt.plot(fig=fig, trace_kwargs=dict(line_color='green'))
# etc.
fig.show()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by julian-dotcom
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