FRENESDE

Intraday data

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

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
Session
Hours during which the market trades
Take the mission on Doji Academy

← Back to the index