Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 05:40:58 +0000



Alert Sound Problem

View Count: 1204

[2014-01-17 05:31:41]
esMike - Posts: 69
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.
[2014-01-17 06:02:30]
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:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

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:

Login

Login Page - Create Account