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/

    Oanda getdata not working with shorter timeframe

    General Code/Help
    1
    1
    377
    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.
    • vensaiten
      vensaiten last edited by

      Last time I checked,

      data = oandastore.getdata(
              dataname = "USD_JPY",
              timeframe = bt.TimeFrame.Minutes,
              compression = 60,
              fromdate = datetime(2017,5,1),
              todate=datetime(2017,12,31)
              )
      

      this code successfully got the oanda data when the compression is 60 and above, but now it seems like compression of 60 is not working as well. compression of 120 and above works.

      Is this problem caused by Oanda? I would like to know if there is any method to work with 5 minutes oanda data.

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