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/

    Error due to time management

    General Code/Help
    2
    3
    395
    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.
    • J
      jguerre5 last edited by

      Given csv data that looks like this:
      0_1552519781029_data.PNG
      I want to save the low/high at 9:31(the earliest time for each day) and use it to compare against current values. This is what my implementation looks like right now:
      0_1552519913005_strategy.PNG
      0_1552519920989_impl.PNG
      I get this error, but I can't figure out exactly what is causing it:
      0_1552520057905_error.PNG
      Is there anything glaringly wrong with what I did? What do I need to do to get the desired effect? Thanks.

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

        I would quote what's wrong, but one cannot quote images.

        1 Reply Last reply Reply Quote 1
        • J
          jguerre5 last edited by

          Could you point me to the general section of the code that's causing the problem? Alternatively I could paste my code as text.

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