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/

    Get analyzer result in the stop() method

    Indicators/Strategies/Analyzers
    2
    5
    721
    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.
    • T
      Trade Prophet last edited by

      Hi,
      Is there a way to get the results of an analyzer in the stop() method of the strategy instead of waiting for cerebro.run() to finish?

      Thank you

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

        For analyzers that constantly update, you can access what has been calculated so far, but the last step will be missing. For analyzers which calculate things when the run is over, nothing will be available.

        1 Reply Last reply Reply Quote 0
        • T
          Trade Prophet last edited by

          Thx !
          Can I set a parameter for the analyzer to constantly update?

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

            No. Some analyzers update constantly and for others it does only make sense to make a final calculation.

            1 Reply Last reply Reply Quote 0
            • T
              Trade Prophet last edited by

              OK, Cheers.

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