Find out the number of bars per day, and set up the MinutesPerDay variable accordingly. It needs not be precise, but it must also not be totally off. You need the latest beta version. Make also sure that enough historical data is available from your broker. PRELOAD can not be used when you have no preloaded 1-hour data.