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/

    Issue in resamplerfilter-Resampler

    General Code/Help
    1
    1
    316
    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.
    • D
      dasch last edited by

      When rightedge=False, Backtrader will output all data immediately. The issue is due to a wrong assumption of the end of the current resampling.

      The end point is added only if rightedge = True but should also when rightedge = False

      Line 384,385 - resamplerfilter.py

              # If rightedge (end of boundary is activated) add it unless recursing
              point += self.p.rightedge
      

      instead it should always add 1, but the correct timestamp should be set differently?

      point += 1
      
      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(); }); }