Date/Time: Fri, 22 Sep 2023 13:46:28 +0000
Alert Sound Problem
View Count: 1044
|meanVelocity - Posts: 53|
I tried using "sc.PlaySound(1);" in a study if my conditions are met... And it plays the sound over and over like 10 times even though the conditions are not met.
Adding this didn't change anything...
"sc.AlertOnlyOncePerBar = 1;"
As soon as I turn the alert on it plays the sound over and over. I know the problem isn't in the study because the study is drawing the signals properly where the alerts should sound.
Sierra Chart Engineering - Posts: 104368
sc.PlaySound() is unrestricted. If you are hearing an alert sound over and over again, the issue is in your code. This is definite. Or you may not have set 1 for the number of times to play the sound file in Global Settings >> General Settings.
"sc.AlertOnlyOncePerBar = 1;" does not apply to sc.PlaySound().
Sierra Chart Support - Engineering Level
Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
To post a message in this thread, you need to log in with your Sierra Chart account: