Coding help

Hello all,
I have been making my 1st EA and I need some help. I need a way to signal when price moves a certain number of pips in one direction without moving the other direction. I need it to change a var to x when it moves up that amount and to y when it moves down that certain amount. Any help would be great.