How to compare the current tick price with the previous?

 
All my solutions just overwrite itself.
 
What's your problem ? Show your attempt.