Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 00:12:11 +0000



Improper behaviour of sc.AlertOnlyOncePerBar

View Count: 541

[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
[2018-04-04 01:44:10]
Sierra Chart Engineering - Posts: 104368
Is it possible to do something wrong that would make the sc.AlertOnlyOncePerBar variable change its status back to "false"?

AlertOnlyOncePerBar can also be changed through the Study Settings window as explained here:
Study/Chart Alerts And Scanning: Alert Only Once Per Bar

Otherwise, it is not going to change.
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