Login Page - Create Account

Support Board


Date/Time: Thu, 18 Apr 2024 23:20:07 +0000



Post From: How to create alert for a a two bar formation?

[2022-08-05 20:26:49]
John - SC Support - Posts: 30953
To begin with you need to start with an AND statement:

AND(Condition1, Conditiion2)

Where Condition 1 is the condition that creates a Blue Bar and Condition 2 is the condition that creates a Red bar (you can not test against the color of the bar, you need to use the actual condition that determines the coloring). Refer to the following:
Study/Chart Alerts And Scanning: OR and AND Functions
Study/Chart Alerts And Scanning: Writing Formulas Based On Color Settings

For the Blue bar you will also need to check the data for the previous bar. To do this, you need to add a [-1] to the subgraphs that you are testing against. For instance if the bar is blue when the Close is below 4200, then you would enter a condition of C[-1] < 4200. Refer to the following:
Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the Chart

And finally, from what you state, you would want to enable the option for Evaluate on Bar Close, such that the Red bar has completed building when the test is made. Refer to the following:
Study/Chart Alerts And Scanning: Evaluate on Bar Close
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing