Saving states/events

 
Lets say at 1pm a moving averages hits 1.500 then at 2pm it hits 1.600 then for the rest of the day it goes back to 1.500.

is there anyway i can store that the info had once reached 1.600?

The strategy im using consists of three different events happening but not necessarily at the same time. I just want MT to store that the event happened. if the event occurs i need to return "true" and keep it that way for the rest of the day regardless if the event changes.

I would like to open an order when i have my 3 "trues" so to speak.

I believe static variables are a good route but im still having trouble getting my head round it.

Thanks for any help.
 
if new day { sawCondition1=false; sawCondition2=false;... }

if condition1 sawCondition1=true;
if condition2 sawCondition2=true; ...

if sawCondition1 && sawCondition2 ..