For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

Issue in resamplerfilter-Resampler

  • 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 -

            # 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

Log in to reply