Or use BarPeriod = 15; and Timeframe to create 60 Min bars.
Than you can close out early by 15 minutes.