Skip to content

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

@AravindaDP

Description

@AravindaDP

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions