Yes when candles are now identical but trades are different, then you have a difference in the scripts. You can find out where it is by printing all trade signal values of both versions to the logs, or plotting them, and compare them.