Both. You need intraday history for intraday backtesting, and you need BarPeriod=1 for one minute bars.