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

Replay with historical data only retrieve daily bars instead replaying every minute #593

Open
AravindaDP opened this issue Oct 20, 2022 · 0 comments

Comments

@AravindaDP
Copy link

Not sure if it is an issue in this package, or bug in back trader core logic. When following setup is used, It requests only fully formed daily bars from backend.

data0 = DataFactory(dataname=symbol,
                            historical=True,
                            fromdate=datetime.now()-timedelta(days=5),
                            todate=datetime.now()-timedelta(days=1),
                            timeframe=bt.TimeFrame.Minutes,
                            data_feed='iex')

cerebro.replaydata(data0, timeframe=bt.TimeFrame.Days, compression=1)

This issue does not occur on streaming data though (Tested without backfill)

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