Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 05:09:08 +0000



sc.SetAlert - issue & request

View Count: 1087

[2015-09-02 20:46:56]
Marek F - Posts: 244
1) Issue:
I have a study that sometimes generates two alerts at the same time (when bar has closed status) and the function sc.SetAlert is called two times. But only one of them plays an alert sound and adds a message to the Alerts Log. Setting the sc.AlertOnlyOncePerBar = false in the sc.SetDefaults code block do not help.
Can you fix this that every alerts will plays an alert sound and adds a message to the Alerts Log, if sc.SetAlert is calls many times at the same bar in the same study?

2) Request:
Can you add an option to the sc.SetAlert function, that only will add a message to the Alerts Log, without play an alert sound? It could be done by setting the AlertNumber parameter to any negative number.
Date Time Of Last Edit: 2015-09-02 20:49:43
[2015-09-02 20:56:40]
Sierra Chart Engineering - Posts: 104368
1. NO! Have you read the documentation for that function? Please read the documentation before posting a request like this.

If that is what you want, you are using the wrong function. Refer to the ACSIL Functions page for what you need.

2. There are other functions which support this. Refer to the ACSIL Functions page.

There will be no further comment in this thread from us.
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
Date Time Of Last Edit: 2015-09-02 21:00:49
[2015-09-02 21:57:43]
Marek F - Posts: 244
I have read very carefully this documentation before I wrote this post...
[2015-09-03 03:27:34]
Sierra Chart Engineering - Posts: 104368
sc.SetAlert is very thoroughly documented. We did some additional updates to it now to make it is absolutely is clear as possible.

1. The more appropriate function you are looking for is:
https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#scPlaySound

2. The more appropriate function is:
sc.AddAlertLine

Although it will be possible to use an AlertNumber of 0 with sc.SetAlert in the next release.
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
[2015-09-06 10:37:43]
Marek F - Posts: 244
Thank you for updated the documentation. Now it is clear.

The reason why i wanted to use the sc.SetAlert for my purpose is:
If you set an Alert on an Index that is not at the end of a sc.Subgraph[].Data array, it will be ignored.
If historical data is being downloaded in the chart, then calls to sc.SetAlert() are ignored.

Seeing that is not possible to do what i want with sc.SetAlert(), so I'll use the sc.PlaySound() function and will add protection in the code of study, which prevent Alert sounds and Messages from occurring when historical data is being downloaded or there is any recalculation.

Thank you for added the possibility to use the AlertNumber of 0, too. I will use it with sc.PlaySound.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account