Does anyone know how to program an alert on an intraday system whereby 
the alert is only sounded if it happened less than say 5 minutes in 
the past to prevent old alerts?

The following code seems on the right track, but gives an error.

AlertIf( Buy AND (  Now(0)-ValueWhen(Buy,DateTime(),1)  )<5*60, "SOUND 
C:\\Windows\\Media\\Ding.wav", "Audio alert", 2 ); 

tks 

Hugh

Reply via email to