For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Chaining Strategies
-
I have two strategies that I'd like to run sequentially. The first strategy allocates a portion of the portfolio between its assets (using
self.order_target_percent
) and the second strategy uses what remains of the portfolio.What is the best way in backtrader to achieve the above?
-
Write two strategy classes and add both to
bt
.
Both strategies will use the same account.