If midnight is really the best for that system, leave BarOffset at 0. Just check if the current hour is 23 or 0 before comparing the week day. This is anyway the proper solution when you don't want to delay the trades through BarOffset.