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 does backtrader scale?

    General Discussion
    4
    6
    1887
    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.
    • J
      JK last edited by

      I'm working on a Quantopian-like platform and Backtrader seems to be a top alternative to Zipline. The main concern I have is how would it handle multiple users running backtests against Quantopian levels of data (estimated at 1 to 4TB)? There are 2 areas of concern, one being loading all that data (for Zipline it seems it has to be done every run), and the other being the CPU load.

      1 Reply Last reply Reply Quote 0
      • J
        JK last edited by

        Has nonody here used Backtrader with large datasets? What size of data are people working with, and how well does Backtrader handle the biggest you've used?

        1 Reply Last reply Reply Quote 0
        • T
          tmorgan4 last edited by tmorgan4

          Have you looked through the documentation? Backtrader has numerous options to tweak how the data is loaded and when indicators are to be calculated. By default all data is pre-loaded into memory but this can easily be changed by adding preload=False argument to Cerebro (https://www.backtrader.com/docu/cerebro.html).

          Additional ideas here:
          https://www.backtrader.com/docu/memory-savings/memory-savings.html

          Have you found any good sources for Quantopian like data? It's very difficult (expensive) to acquire good data and Quantopian always kept the data locked up in their platform.

          E 1 Reply Last reply Reply Quote 0
          • E
            Ed Bartosh @tmorgan4 last edited by

            It's very difficult (expensive) to acquire good data

            Do you know any other frameworks that make it more easy?

            My understanding so far was that getting data can be as easy as downloading it from yahoo/google/quandl and it doesn't very much depend on the used backtesting framework.

            T 1 Reply Last reply Reply Quote 0
            • T
              tmorgan4 @Ed Bartosh last edited by

              @ed-bartosh

              My interests are primarily intraday (1-minute) FX and futures. Several years is typically available but much of the free FX data is very low quality. I would like to get historical data that includes depth of market and order histories but this data seems to be marketed towards hedge funds with deep pockets. Everything I found was on the order of $50k+. Please share if you know of any reasonable sources!

              1 Reply Last reply Reply Quote 0
              • L
                lssilva last edited by

                May I ask what is the platform are you working on? QuantRocket?

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