Plotting - candlestick charts and highlighting economic/news events
kicking_potato88 last edited by
Hi, is it possible to plot the chart as a candlestick/bar chart instead of a line chart?
Another question, I am trying to incorporate economic events/data into Backtrader. Any suggestions on how to feed the events into Backtrader, and is it possible to highlight bars where major data has been released? Thanks!
There are some tens of samples plotting candlesticks and/or bars.
Check here for the option
stylewhen plotting: Docs - Plotting
You can extend a data feed to have extra data Docs - Extending a Data Feed which can be the
P/Eratio like in that case or anything you like.
To Plot the events the best options would be:
Indicatorthat only delivers a point when an economic event happens. Assign the
lowand plot and arrow/triangle or other marker
The same but with an
Observer. In this blog post, the triangles of the
BuySellobserver are changed to arrows Blog - Arrows for the BuySell Observer
Your best option is to check the source for the
BuySellobserver or the
Tradesobserver and plot the economic events instead of the operations/trades.
Syed Javed Gardezi last edited by
@kicking_potato88 hi did you find a good solution yet for plotting economic news events into Backtrader. I am trying to do the same.