Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 21:48:02 +0000



Color Background Based on Alert Condition

View Count: 790

[2016-10-10 13:56:24]
User593033 - Posts: 10
Hello

I am trying to create a simple alert with two different custom studies where when one condition occurs (ID1.SG1) and then only on the very next bar the next condition occurs (ID2.SG1) a signal will be created. I am having trouble figuring out how to create this.

Any help is appreciated.
[2016-10-10 15:45:00]
Sierra Chart - Max - Posts: 5778
Refer to the documentation here to reference the previous to last bar:
Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the Chart

You can use the following formula:
=AND(ID1.SG1[-1], ID2.SG1)

Sierra Chart Support

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

Login

Login Page - Create Account