Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backfill_from not working? #2

Open
junaidnasir opened this issue Dec 19, 2019 · 0 comments
Open

backfill_from not working? #2

junaidnasir opened this issue Dec 19, 2019 · 0 comments

Comments

@junaidnasir
Copy link

Hi,
thanks for the package. I tried to run it with mt5 but to reduce the backfill time i tried running with backfill_from=data where data is a pandas feed. but it seems like backfill is not used and it gets everything from mt5.

# this works individually i.e if used with cerebro.adddata(backfill_data)
backfill_data = bt.feeds.PandasData(dataname=d2, datetime="datetime")
store = MTraderStore()
# this downloads all data from mt5 instead of using backfill_data
data = store.getdata(
    dataname="EURUSD",
    timeframe=bt.TimeFrame.Minutes,
    fromdate=start,
    compression=1,
    historical=True,
    backtfill_from=backfill_data,
)
cerebro.adddata(data)
cerebro.run()
cerebro.plot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant