Login Page - Create Account

Support Board


Date/Time: Sat, 02 Jul 2022 20:38:49 +0000



reference 'Color Zig Zag Line Using' for Simple Alert Formulas

View Count: 48

[2022-06-22 22:58:19]
whats1thingnow - Posts: 378
for this study: https://www.sierrachart.com/index.php?page=doc/StudiesReference.php&ID=133&Name=Zig_Zag

it says:
"This Subgraph can also be referenced by Simple Alert Formulas. In this case it would be referenced as SG2 in the formula."


instead of Text Labels (SG2), i'm interested in writing some Simple Alert Formulas using SG1. for example:

alert me when color is up (green)

or

alert me when color is down (red)

thus, regardless of what we choose from the 3 options (Slope, Trend Confirmed Volume, Confirmed Volume) of 'Color Zig Zag Line Using', we can be alerted when the color changes

thank you for the help
[2022-06-22 23:06:22]
John - SC Support - Posts: 17114
You can not color based on the color. You have to create the alert dealing with the underlying data that causes the color change. Refer to the following:
Study/Chart Alerts And Scanning: Writing Formulas Based On Color Settings
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-06-23 12:55:45]
whats1thingnow - Posts: 378
thank you john!

any tips on how do we write alert with the 'Color Zig Zag Line Using' SG1?
[2022-06-23 16:26:38]
John - SC Support - Posts: 17114
You can't just do it based on SG1, you have to look at what the underlying calculations are and use that information. You will probably have to use the Spreadsheet Study to get everything you need for all 3 of the coloring options. The easy one is Slope, where you would use the following formula to check if it is downsloping:
=ID1.SG1 < ID1.SG1[-1]

We can't go into the rest as we do not have the time, and it is not really part of our support for programming. Others may be able to help.
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