Intraday data splits the session into 1, 5 or 15-minute bars. You tell the feed: bt.feeds.GenericCSVData(dataname='es_5m.csv', timeframe=bt.TimeFrame.Minutes, compression=5), with date and time formats matching the file.
The number of bars explodes: a 390-minute session gives 78 five-minute bars, nearly 20,000 a year. More signals, but also more fees: on a small profit target, spread and commission weigh far more.
Check the time zone: a file in New York time read as Paris time shifts every session by 6 hours and distorts time filters. Feeds accept a tz parameter, as well as sessionstart and sessionend for session hours.
Between two sessions, the night creates a gap: an SMA 20 on 5-minute bars mixes, early in the day, bars from the previous day and the current one. You can wait a few bars after the open, or compute part of the signals on a resampled timescale with resampledata.
Examples
PI-X (fictional market) : Each rectangle groups several candles: intraday, compression sets the length of each one (1, 5 or 15 minutes). The shorter it is, the more detailed the chart, and the more noise and fees weigh.
6 May 2010: the flash crash : On 6 May 2010, the Dow Jones index lost nearly 1,000 points, about 9%, within minutes, before regaining most of the drop shortly afterwards. On daily bars the day just looks choppy; intraday, you see stops filled at extreme prices.
Key terms
Intraday
Data split into bars shorter than a day
Compression
Number of minutes (or units) grouped into one bar
Time zone
Time reference of the data, e.g. Paris or New York