Support Board
Date/Time: Sat, 28 Dec 2024 07:30:55 +0000
AlertSoundNumber is shifted by one
View Count: 780
[2016-01-13 18:45:21] |
T29_Dev1 - Posts: 22 |
Hi, I guess you shifted indexes when you added "No Alert Sound" in the combobox with list of sounds. For playing a correct sound I have to write: sc.SetAlert(alert_id.GetAlertSoundNumber() - 1); v. 1354 update: in the doc - "0 means no alert sound" in fact it returns 1 for "no alert sound" and 0 for "Alert Disabled" Date Time Of Last Edit: 2016-01-13 18:50:23
|
[2016-01-14 08:57:12] |
Sierra Chart Engineering - Posts: 104368 |
Thank you for pointing this out. We are updating the documentation now.
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 |
[2016-01-14 19:19:28] |
T29_Dev1 - Posts: 22 |
it's good that you have updated the documentation, but what about code samples? For example in the doc: sc.PlaySound(HighAlert.GetAlertSoundNumber(),"New Daily High"); must be: sc.PlaySound(HighAlert.GetAlertSoundNumber() - 1,"New Daily High"); and studies in the ACS_Source folder? Just I use it in many studies and before I fix it in all my studies I want to be sure you will not change back this feature. |
[2016-01-14 20:57:35] |
Sierra Chart Engineering - Posts: 104368 |
We are aware of the code examples and we will be updating those later today.
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: