Hello @backtrader! Can you please approve https://github.com/mementum/backtrader/pull/472 these changes?
- added posibitity for Black theme for charts
- added posibitity to run on matplotlib 3.6+
- added posibitity to run on Python 3.9+
Thanks!
Hello @backtrader! Can you please approve https://github.com/mementum/backtrader/pull/472 these changes?
@backtrader Hello! Can you please approve these changes https://github.com/mementum/backtrader/pull/472 ?
1st commit: Option to change background for plotted value tags for dark theme - to get dark theme)))
When you use dark theme you need to change background for plotted value tags.
2nd commit: Fix: In last Python versions collections.Iterable -> collections.abcIterable - to work with Python 3.11+
**3rd commit: Fix: The set_view_interval, set_data_interval ... are removed. Now you can work with matplotlib > 3.6.x
Please review and approve it if you have time. Thanks!
@backtrader Hello)) Thanks a lot! Can you please approve another change https://github.com/mementum/backtrader/pull/479 - this is to fix simulated orders. Thanks.
@backtrader Thanks, a lot! It would be great!!
@backtrader Hello! Can you please approve these changes https://github.com/mementum/backtrader/pull/472 ?
1st commit: Option to change background for plotted value tags for dark theme - to get dark theme)))
When you use dark theme you need to change background for plotted value tags.
2nd commit: Fix: In last Python versions collections.Iterable -> collections.abcIterable - to work with Python 3.11+
**3rd commit: Fix: The set_view_interval, set_data_interval ... are removed. Now you can work with matplotlib > 3.6.x
Please review and approve it if you have time. Thanks!
Hello @backtrader! Can you please approve https://github.com/mementum/backtrader/pull/472 these changes?
Hello! I am using the same construction, and all seems OK:
self.log(ticker + f": >>> BUY ORDER '{order.info.level_name}' COMPLETED at {order.executed.price:.{globals.f_decimal[ticker]}f} price, "
f"size = {order.size}, Cost={order.executed.value:.2f}, Comm={order.executed.comm:.2f}, "
f"DEPO={self.cerebro.broker.getcash():.2f}, Was Created={order.info.created_date}")
self.log_for_csv(ticker=ticker, level_name=order.info.level_name, order='BUY',
order_price=f"{order.executed.price:.{globals.f_decimal[ticker]}f}",
size=order.size, status=order.getstatusname(order.status),
cost=f"{order.executed.value:.2f}",
comm=f"{order.executed.comm:.2f}", amount="?", bar_high=order.data.high[0], bar_low=order.data.low[0])
Have you resolved your problem?
Hello! )) Please resend your screen shots again.