It does look weird that despite there is no data in the database after 16:45, Zorro would still finish the 240-min bar at 20:00..

So, one has to use FrameOffset and framesync() to start off each day at 8 and end at 16:45, correct?
What would be the way to end the last bar each day on 16:45?