Alpaca-backtrader-api Minutes timeframe offset problem

Hello, all. I’ve encountered what I believe is a timezone issue when backtesting with bt.TimeFrame.Minutes. I’m getting plots with premarket data at 9:30, market open at 13:30, and a 12:00 data at 16:00. I don’t really care about the offset except it’s leaving out the final 4 hours of every trading session. This problem persists even when I specify tzinfo in my fromdate and todate variables. I’ve also tried swapping the trading_calendars module for exchange_calendars in Any thoughts?

1 Like