Login Page - Create Account

Support Board


Date/Time: Fri, 18 Oct 2024 04:08:19 +0000



Chart/Study Alert Condition Adds Two Lines to Alert Log Instead of One

View Count: 88

[2024-07-23 21:02:10]
User900285 - Posts: 93
Hello,

I have examined the following behavior with how Sierra Chart writes to Alert Log Files when the setting General Settings > Global Settings > Logs > Save Alerts Log to File, is enabled. Usually when an alert is triggered, it writes one line to this file. I have come across a scenario where the text that gets added gets split into two separate lines, therefore two lines get added to the file when an alert is triggered.

When the Study Alert condition contains a new line character like this:

AND(CROSSFROMBELOW(H,ID4.SG1),
AND(H[-1]<ID4.SG1,H[-2]<ID4.SG1,H[-3]<ID4.SG1))

In other words, the alert condition is split into two lines. This is what causes two lines to be written to the file.

If the new line is removed and the condition is modified to this:

AND(CROSSFROMBELOW(H,ID4.SG1), AND(H[-1]<ID4.SG1,H[-2]<ID4.SG1,H[-3]<ID4.SG1))

The behavior is now the same as normal and only one line is written each time an alert is triggered.

Let me know if this is something normal or not.
[2024-07-23 21:37:31]
Sierra_Chart Engineering - Posts: 16656
We can take care of this. We will work on a solution.
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, use 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