I will edit it under "//---- last counted bar will be recounted", that's as close as I can see to what you have posted.
haOpen is indeed missing the *6.1, the haClose is considerably different.
Is price closing higher or lower than something? Simple yet powerful question. ..MO