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/

    Multi-Broker

    General Code/Help
    2
    2
    93
    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.
    • Kjiessar
      Kjiessar last edited by

      Hi,
      I still trying to optimize my simulation runs.
      Optstrategy is good but I still have the issue with memory leaks and if it crashes all results are lost, so could split up and let run multiple of them but still...

      What I was thinking was to create a Broker, that handles multiple other Broker, so that at each next a strategy with it's own account (broker) is called.

      I don't got enough inside into the interplay of cerebro and broker if that would be an option.

      1 Reply Last reply Reply Quote 0
      • run-out
        run-out last edited by

        I run my own optimization outside of backtrader. You could have a look at the run_backtest and backtest_controller_multi methods.

        https://github.com/neilsmurphy/backtrader_template/blob/main/main.py

        RunBacktest.com

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