Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. gowestyang
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    gowestyang

    @gowestyang

    0
    Reputation
    13
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    gowestyang Unfollow Follow

    Latest posts made by gowestyang

    • RE: replay H1 bar using M1 data and call function at new H1 bar

      Maybe I have found the answer in the document:
      "When a compressed bar is forming, the length len(self) of the strategy will remain unchanged."

      posted in General Code/Help
      gowestyang
      gowestyang
    • replay H1 bar using M1 data and call function at new H1 bar

      Hello!

      I'm replaying H1 bar using M1 data:
      cerebro.replaydata(data, timeframe=bt.TimeFrame.Minutes, compression=60)

      When calling next(), the function runs at a new M1 bar, which is good.

      While I'm looking for a similar function, which is called at a new H1 bar - please kindly share your advise.

      Thank you!

      posted in General Code/Help
      gowestyang
      gowestyang