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/

    Why do we need Cerebro runonce set to false when we are using multiple timeframes?

    Indicators/Strategies/Analyzers
    2
    5
    49
    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
      TigerAndy last edited by

      Why do we need Cerebro runonce set to false when we are using multiple timeframes?

      When I run the sample code in the article below
      https://www.backtrader.com/blog/posts/2016-04-28-pivot-point-cross-plotting/pivotpoint-crossplotting/

      It produces the same results when I set runonce =True or False

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

        @tigerandy said in Why do we need Cerebro runonce set to false when we are using multiple timeframes?:

        runonce

        You should get the same result. Read the docs here: runonce Runonce is used to speed up runtime where possible using batch operations.

        T 1 Reply Last reply Reply Quote 1
        • T
          TigerAndy @run-out last edited by

          @run-out Yes I know it speeds up time but what I want to know is why it isn't causing an error because that is what I thought would happen.

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

            @tigerandy Yeah, but why are you expecting an error?

            T 1 Reply Last reply Reply Quote 1
            • T
              TigerAndy @run-out last edited by

              @run-out Since in the backtrader docs(backtrader.com/docu/data-multitimeframe/data-multitimeframe/) it says it needs runonce to False.

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