Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 23:30:28 +0000



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

View Count: 112

[2024-07-23 21:02:10]
User900285 - Posts: 94
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: 17154
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