Ordersend()s for bar(0) placed at close --- correctable?

 
Slawa,
I'm programming a simple reversal based on 'if H(2)<Cl(1)', etc... -- my problem is that for bar(0)--daily chart--the order is placed at 23:59 (pm) instead of 00:01 (am).

Example: instead of opening the bar 2.07.05 as bar (0), finding my logic circuits true, and initiating OrderSend(), the code waits until the close of the day to act. (this suggests to me the circuits are ok)

I've tried shifting my numbering to the right, but thus far the data collected isn't correct. Also tried writing check for Hour() == 0, etc--again, incorrect data usage.

This seems like an internal characteristic--can it be remedied?
Reason: