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/

    Creating bt.TimeFrame.Hours ?

    General Discussion
    1
    1
    321
    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.
    • B
      balibou last edited by

      Hello, I am wondering why bt.TimeFrame.Hours is not available ?

      I only use hourly timeframes (1h, 2h, 4h) for my strategies, and I always have to use ohlcv data in minutes then resample:

      60 minutes -> 1h
      120 minutes-> 2 h
      ....

      The problem is on large timeframes (2/3 years), it takes more than 15 minutes.
      It would definitely be a boost up if I have to process ohlcv data in hours.

      Even if I have to deal with ohlcv data in 1 hour then resample it to 4h I would process 60 times less than the actual behavior.

      Thanks for any feedback !

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