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

Oanda getdata not working with shorter timeframe

  • Last time I checked,

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

    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.

Log in to reply