Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 03:49:24 +0000



ZIG Zag extensionline Alarm not work

View Count: 411

[2023-06-07 15:13:41]
Hardi - Posts: 1
Hello
I have a problem with the alarm setting. I use the Zig Zag Study and display the extension lines. Now I want an alarm sound to come when this line is touched. I have written the text =crossover(SG8) in the alarm window of the Zig Zag Study. (SG8 is the extension line) There is no alarm but an error message in the alarmlog, see picture.


The sound file is ok the sound alarm works with other indicators. The syntax also works, e.g. with VWAP Study.
What am I doing wrong?

Thanks
imageSC ZigZag.jpg / V - Attached On 2023-06-07 15:13:34 UTC - Size: 255.42 KB - 109 views
[2023-06-07 15:19:24]
John - SC Support - Posts: 36350
You can not use an Alert on an extension line. The subgraph that defines the extension line is there just to set the color. The actual extension line is not stored in the Subgraph. Which is why you can not create an alert on it.

To do what you want, you would have to create a line that extends from the ZigZag point you want. If it is the last ZigZag, then that is fairly straightforward, as you can use the Spreadsheet Study and use the "MOSTRECENTNONZEROVALUE" to find the most recent ZigZag line and then that will copy it to the rest of the bars, so you can then use that column's subgraph to test against. Refer to the following:
Using the Spreadsheet Study

https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#MOSTRECENTNONZEROVALUE_Function

Zig Zag: Additional Output for Spreadsheets
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