EA signal to often

 

I have put together an EA and it is supposed to have an alert notification pop up when certain criteria are met.  

What it does: It sends an alert notification every 30 min (the time frame it is monitoring) while the condition remains true.

What I want to to do:  I need it to send an alert once after the condition is met and only again after the condition becomes false then true again.

My overall goal is to log when the condition first becomes true after being false.  The logic of the program is all there I just cannot figure out the Alert notification system.

Files:
killzone4.mq4  23 kb