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

Options for forward filling in Live mode

  • E.g. when using live mode and resampling live ticks to M1 bars then you get gaps in the data lines when in a given minute no tick arrived. I am unsure how to handle this properly and I think I have read about backtrader being able to forward fill those gaps when data is missing.

    Currently I fail to find any definite information about this topic. What I found is this which involves using data filters:

    Not sure if something similar could be used to handle the situation mentioned above. I am sure this topic has been discussed already. So maybe someone could point me in the right direction?
    Thank you.

Log in to reply