Login Page - Create Account

Support Board


Date/Time: Fri, 18 Oct 2024 06:17:14 +0000



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

[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.