[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Playing alarm



PureBytes Links

Trading Reference Links

In a message dated 3/3/00 5:51:10 AM Pacific Standard Time, maxci@xxxxxx 
writes:

> Is there a way to play an alarm or wav file just once for each bar when
>  a condition is true?
>  I tried:
>  
>  Inputs:Level(100);
>  Vars:Alarm(True);
>  Condition1=Volume crosses above level;
>  If Condition1 then begin
>      If CheckAlert then Alert=True;
>      Alarm=Playsound("C:\volume.wav");
>  end;
>  
>  But it plays the wav file several times during the bar  wher condition1
>  is true if the update every tick option is checked.
>  Is there a way to be warned just once?
>  

I'm not sure if this is what you mean, but in TS4:

Click: "tools," "options," "attention," and
then in Alert Sounds check "once."

Bill Wynne
SmartTrades.com