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 processes

    General Code/Help
    2
    3
    631
    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.
    • H
      hobart-liu last edited by

      Does backtrader support multi-process? I suppose this shall be supported. I see backtrader use multi-process when do optimizing, but I don't find how to use multi-process examples. I am asking for this because I want to scan on stocks. The strategy is same for all, but need different data feeds.

      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by

        There is nothing against you using the multiprocessing or threading modules from the Python standard library. backtrader runs (by default, though you can change that) in the main thread and you can spawn as many processes or threads as you need to do your background processing.

        A clearer explanation of your goals is probably needed for a better answer

        1 Reply Last reply Reply Quote 1
        • H
          hobart-liu last edited by

          thanks, I will try

          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(); }); }