Login Page - Create Account

Support Board


Date/Time: Tue, 18 Jun 2019 17:55:33 +0000



Alert condition calculates only current day

Support Request:
[2019-03-06 20:31:58]
chart_warrior - Posts: 55
I have an alert set to show up if:
1) Condition is true (> 0) on current bar
2) Condition is true (> 0) on previous bar

AND(
ID8.SG1>0,
ID5.SG1[-1]>0
)

This works fine but only on current day, or whatever is the last day in a loaded chart.
My "bars to calculate" is set to 2000000 so this is not an issue but I can't get it to work on any previous days even though I see where it's supposed to show up and on "chart values" windows I can see that the output is > 0 on both current and previous bar, yet it doesn't show up.
[2019-03-06 21:47:26]
User541156 - Posts: 38
alert is working as intended as far as i can see.
you need to write this in the spreadsheet and then display those calculated values on your chart using appropriate studies.
[2019-03-06 23:37:39]
chart_warrior - Posts: 55
Why would this need to be in a spreadsheet?
I added the spreadsheet study and I can see that the value is > 0 on current (ID8.SG1) and previous (ID5.SG1[-1]) but this only works on current day.
I also tried recreating the chart but get the same issue.
[2019-03-08 14:28:39]
chart_warrior - Posts: 55
SC support, any idea?
[2019-03-08 15:46:04]
Sierra Chart Engineering - Posts: 72918
Provide that chart by following these instructions so we can look at this:
https://www.sierrachart.com/index.php?page=doc/PostingInformation.php#ProvidingChartbookSingleChart
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2019-03-08 19:41:54]
chart_warrior - Posts: 55
SC Support, please see attached chartbook.
These are some sample time stamps when this condition is true but doesn't show up except last day on a chart.
3/4 @12:17
3/6 @9:41
3/6 @9:52
3/8 @9:35
Private File
Attachment Deleted.
[2019-03-12 18:32:40]
John - SC Support - Posts: 977
This is a Calculation Precedence issue. Move the Color Bar Based on Alert Condition that references the other two Color Bar Based on Alert Condition studies down to the bottom of the list.

Refer to the documentation here about Study Calculation Precedence:
https://www.sierrachart.com/index.php?page=doc/ChartStudies.html#StudyCalculationPrecedence

To post a message in this thread, you need to login with your Sierra Chart account:

Login

Login Page - Create Account