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

Playing alarm



PureBytes Links

Trading Reference Links

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?

--
Best Regards

Massimo Ciarafoni

"Being defeated is often a temporary condition. Giving up is what makes
it permanent." - Marilyn vos Savant