Your EmailAlm output program needs to have Set OFF as the first line of code, followed by any conditions that should turn it on.
Read my tutorial on Apex Alarms for more details and examples:
Neptune Apex Programming Part 6 of our series: Alarms.
www.reef2reef.com