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/

    Backtest multiple csv files using one strategy, one program at the same time?

    General Discussion
    2
    3
    55
    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.
    • B
      bomby9012 last edited by

      I've downloaded hundreds and thousands of stock csv files in one directory.
      Now I'd love to backtest them all at once.
      Single stock backtesting is already done, BUT I don't know how to feed multiple data into cerebro, does it contain a for loop... or something?

      A 1 Reply Last reply Reply Quote 0
      • A
        ab_trader @bomby9012 last edited by

        @bomby9012

        this was discussed on the forum several times, search for it.

        There are also couple articles -

        https://www.backtrader.com/blog/posts/2015-09-03-multidata-strategy/multidata-strategy/
        https://www.backtrader.com/blog/posts/2017-04-09-multi-example/multi-example/
        https://www.backtrader.com/blog/2019-07-19-rebalancing-conservative/rebalancing-conservative/
        https://www.backtrader.com/blog/2019-05-20-momentum-strategy/momentum-strategy/

        B 1 Reply Last reply Reply Quote 3
        • B
          bomby9012 @ab_trader last edited by

          @ab_trader Thank you! It means a lot!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
          $(document).ready(function () { app.coldLoad(); }); }