Support Board
Date/Time: Sun, 19 Jan 2025 12:22:38 +0000
Post From: Improper behaviour of sc.AlertOnlyOncePerBar
[2018-04-03 20:12:00] |
User470516 - Posts: 78 |
Dear Madam, dear Sir, I have written a piece of code that generates an alert on a given condition. To avoid repetition of alerts forever, I have used "sc.AlertOnlyOncePerBar = true;" in the sc.SetDefaults code block as stated by the documentation. The alert never stops. If I use that same instruction in the data processing part of the code, it sounds only once. Is it possible to do something wrong that would make the sc.AlertOnlyOncePerBar variable change its status back to "false"? I do not mind having that instruction in the data processing section of the code, even though I agree with the documentation that sc.SetDefaults section is the proper place for this. Thank you for your support. Regards, Laurent |