I leave this as a little brain-teaser over the weekend. Who can see why this code still does not get the same number of trades on 1-day and 1-hour bars? Solution Monday. Have a nice weekend!