Backtrader Community

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

    Multicore Optimization and self define analyzers

    General Code/Help
    2
    2
    212
    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.
    • Y
      yoghurtshawn last edited by

      Re: Mutidata + Multicore Optimization AttributeError

      Hi admin,

      As you said in this topic:

      The problem is that you have to store the PnL value in the stop method of the Strategy. Because unless you do that you talk to the last instance of the PnL which cerebro keeps record of. (With maxcpus > 1 it would be the same)

      What if I had a self defined analyzers which requires store some values in stop method. How can I modify my codes so that multi core opt could work properly, instead of error: AttributeError: Can't get attribute 'Lines_LineSeries_LineIterator_DataAccessor_ObserverBase_Observer_DataTrades_bd546845b4ba4f7489a48e0b65e9bec2

      Many thanks!

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

        @yoghurtshawn said in Multicore Optimization and self define analyzers:

        How can I modify my codes so that multi core opt could work properly

        We don't know. Your code isn't there.

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