Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    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

    General Discussion
    3
    3
    460
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Mcruzg last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • vladisld
        vladisld last edited by

        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).

        1 Reply Last reply Reply Quote 2
        • K
          korey21 last edited by

          I need to find out more about it.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors