For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
How to combine several strategies using backtrader
-
Hello,
I have a couple of good strategies that are not correlated and I would like to combine them using backtrader. I want to be able to see the trades made by both strategies. Is it possible to build a strategy, using the traditional backtrader way, to do this? -
Please see the following posts:
https://community.backtrader.com/topic/1337/running-multiple-strategies-combining-the-output
https://community.backtrader.com/topic/2326/multiple-strategies-on-single-data
Basically you just need to call
cerebro.addstrategy
for each of your strategies and they all will be run. Each strategy will get access to all the data feeds and all of the strategies will use the same broker (share the position). -
I need to find out more about it.