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/

    Question about cerebro.resampledata()

    General Code/Help
    2
    4
    33
    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.
    • M
      Marcos last edited by

      When I try to resample the 1 minute data to daily data. My daily data graph only got one bar output, which is weird. I double checked my code and don't find any mistake. Can someone help me check my code or tell me what is going on?

      截屏2022-10-15 上午11.23.00.png
      截屏2022-10-15 上午11.24.49.png

      1 Reply Last reply Reply Quote 0
      • G
        gogoway771072 last edited by

        try

        cerebro.plot(style='bar')

        M 2 Replies Last reply Reply Quote 0
        • M
          Marcos @gogoway771072 last edited by

          @gogoway771072 I tried it. But problem is still there.

          1 Reply Last reply Reply Quote 0
          • M
            Marcos @gogoway771072 last edited by

            @gogoway771072 I figured it out. The reason is my backtrader version is 1.9.66.122. After I upgrade it to 1.9.76.123. The problem solved.

            Anyway, Thx for help

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