Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 20:43:44 +0000



Post From: sc.SetAlert - issue & request

[2015-09-02 20:46:56]
sampater - Posts: 243
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