For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

multi processes

  • 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.

  • administrators

    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

  • thanks, I will try

Log in to reply

Looks like your connection to Backtrader Community was lost, please wait while we try to reconnect.