check if previous day went up or down

 
Hi,
I have a simple check in my EA iOpen("EURUSD",1440,1)<Close("EURUSD",1440,1) - meaning did the price go up?
on the tester it does bring the correct information - open> close - but on the live EA he 'thought' the opposite.
how could that be? I am running it on 1M chart in both cases.
Ta
IYC
 
IYC: how could that be?
It can't. Your code is broken. The little you posted won't even compile.
Reason: