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/

    Is backtrade suitable for my project?

    General Code/Help
    3
    3
    842
    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.
    • A
      Anon last edited by

      Hi,
      I'm new to Backtrader. I read most of the documentation, but I'm not sure if bt has the features I need for my project, so I'm here to ask those who have deeper understanding of the platform or the developer himself (in disguise or not).
      I have to run a very high number of different strategies on the very same data set (exactly the same candles, no more, no less), and I need to run them at the same time (on the same simulation cycle) to save CPU time. Several problems arise:

      1. when I add many strategies to Cerebro, they operate on the same broker, competing on the same cash, affecting each other. I need simulations and results to be completely independent and separate;
      2. even running the strategies on separate cerebro.run() calls, different strategies use different indicators that might use different periods, making the data set on which the strategies run on different for every simulation. I need to test all the strategies on identical periods of time (same data set/candles);
      3. along with 1) and 2), to save CPU time, it would be great to take advantage of multiprocessing.

      Is this achievable on Backtrader? If not, what would you suggest?

      Thank you very much.

      P 1 Reply Last reply Reply Quote 0
      • _
        _m_d_b last edited by

        This might be useful to you:
        https://www.backtrader.com/blog/posts/2016-10-29-strategy-selection/strategy-selection.html#strategy-selection

        1 Reply Last reply Reply Quote 0
        • P
          Paska Houso @Anon last edited by

          @Anon said in Is backtrade suitable for my project?:

          1. when I add many strategies to Cerebro, they operate on the same broker, competing on the same cash, affecting each other. I need simulations and results to be completely independent and separate;

          That's easy ... it's clear the broker doesn't have the notion of accounts and all strategies running in the same cerebro work within the same (single and unique) account.

          @Anon said in Is backtrade suitable for my project?:

          1. along with 1) and 2), to save CPU time, it would be great to take advantage of multiprocessing.

          Easy with google ...

          • https://www.backtrader.com/blog/posts/2015-07-23-multicore-optimization/multicore-optimization.html
          • https://www.backtrader.com/blog/posts/2016-09-05-optimization-improvements/optimization-improvements.html

          I guess @_m_d_b has tackled #2, but there is an extra link for it:

          • https://www.backtrader.com/blog/posts/2017-05-16-stsel-revisited/stsel-revisited.html
          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors