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/

    initializing resampled/replayed data

    General Discussion
    2
    3
    480
    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.
    • bb2
      bb2 last edited by bb2

      Hello,

      I want to reduce the time required for backfilling.

      I was wondering whether it is ever possible to backfill replayed data. Currently backfilling is done via executing the strategy on low time frame data and higher time framed replayed datas, which takes a bit of time. I just need to do backfilling to initialize higher time frame datas before executing my strategy live.

      It would be easier for me if I was directly allowed to provide higher timeframe data myself instead of executing the strategy for backfilling.

      Best

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

        @bb2 said in initializing resampled/replayed data:

        I was wondering whether it is ever possible to backfill replayed data

        No.

        But your source data could provide the higher target timeframe until it deems fit to provide the smaller timeframe ticks. The replay filter should take the higher target timeframe as it is until it sees smaller ticks which will be accumulated.

        bb2 1 Reply Last reply Reply Quote 0
        • bb2
          bb2 @backtrader last edited by bb2

          @backtrader thank you for the suggestion. Though would that still work If I need to replay multiple timeframes?

          I was thinking of resampling my low tf data dataframe with pandas to higher timeframe and use it for backfilling source. (if I got you right above).

          If I have multiple replays, then I will do the pandas resampling multiple times, but I think concatenating and backfilling wouldn't be the right approach, because they have different compressions on bt PandasData level.

          What would you suggest for multiple replays?

          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(); }); }