Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 10:56:25 +0000



Alert condition calculates only current day

View Count: 729

[2019-03-06 20:31:58]
chart_warrior - Posts: 96
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: 67
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: 96
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: 96
SC support, any idea?
[2019-03-08 15:46:04]
Sierra Chart Engineering - Posts: 104368
Provide that chart by following these instructions so we can look at this:
Support Board Posting Information: Providing Chartbook with Only a Single Chart
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
[2019-03-08 19:41:54]
chart_warrior - Posts: 96
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: 31098
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:
Chart Studies: Study Calculation Precedence And Related Issues
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