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

Re: Playing alarm



PureBytes Links

Trading Reference Links

C'mon, guys, this is the old 
"TS-doesn't-update-variables-except-after-the-close-of-the-bar" 
problem.

You need an external variable (i.e.Global Variables) to keep the
condition from being true each tick.   As I recall InvestLabs
has an example of this in their Global Variables Pro package.
(www.investlabs.com)

donc


> Subject:           Re: Playing alarm
>    Date:           Fri, 3 Mar 2000 14:57:23 EST
>    From:           TradeWynne@xxxxxxx
>      To:           maxci@xxxxxx, omega-list@xxxxxxxxxx
>
>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