Support Board
Date/Time: Sat, 12 Jul 2025 00:37:13 +0000
Alert for High / Low in Daily OHLC study
View Count: 373
[2025-04-01 17:14:46] |
User269912 - Posts: 19 |
Hi, use and enjoy the Daily OHLC study. Using Draw Style 'Background' in Subgraphs I depict the High and Low on my charts. Happy with that. I would now also like to set an Alert to trigger each time a High, or Low is hit, but cannot work out how to do that. Can you please help? |
[2025-04-01 17:19:17] |
John - SC Support - Posts: 40857 |
To do this, you need to test the current value against the value of the previous bar to see if there is a change. You therefore need to set the Input for "Graph High and Low Historically" to "Yes". Then your alert condition formula to test if the high has changed would be the following: =ID1.SG2 <> ID1.SG2[-1] Where ID1 is the ID of the Daily OHLC study, SG2 is the High subgraph and the [-1] indicates to use the value one bar back. If you really do not want to view the High/Low historically (i.e. see how it changes) then you would need to use another copy of the study setup with this option and use it for your alert. You could then hide that study so you do not need to view it. Refer to the following: Study/Chart Alerts And Scanning: Referencing Other Studies on the Chart Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the Chart For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-04-22 14:04:10] |
User269912 - Posts: 19 |
Hi, this has worked well. However, I now realise that what I would really like to be alerted on, is the Higher Low (HL) and Lower High (LH) functions that sit in the ZigZag study. The problem is that both HL & LH are referenced by one (the same) Sub-Graph (SG2), not two. What code formula, if any, would address this issue? As ever, many thanks for your help. |
[2025-04-22 15:22:35] |
John - SC Support - Posts: 40857 |
Refer to the following to start: Zig Zag: Zig Zag Reversal Alert Each label actually has a number associated with it. So if you want to alert on a specific label, such as HL, you would setup your alert to check the Zig Zag Text Labels subgraph (subgraph 2) for a value of 3. Here are the specifics: - LH: 1 - HH: 2 - HL: 3 - LL: 4 For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-05-22 09:12:03] |
User269912 - Posts: 19 |
Hi John I have used the code you suggested (first post) - =ID1.SG2 <> ID1.SG2[-1] in a Color Bar Based on Alert Condition study and it works well, but it still does not enable me to separately identify LH: 1, nor HL: 3. To rectify this, in your last post (immediately above) you suggested I set an alert to check the Zig Zag Text Labels subgraph (subgraph 2) for a value of 3. However, I cannot find subgraph (subgraph 2), in either the Zig Zag study, or Color Bar . . . What I am I misunderstanding? ALSO, the code does not work with the Euro futures contract 6E, nor 6ME. Why? As ever, many thanks for your help with this! |
[2025-05-22 14:14:41] |
John - SC Support - Posts: 40857 |
The Zig Zag study has an SG2, it is the "Text Labels" subgraph. You need to reference this explicitly with the study ID if you are not entering the alert on the Zig Zag study. Refer to the following: Study/Chart Alerts And Scanning: Referencing Other Studies on the Chart There is no reason for this to not work with certain symbols. You need to ensure that you have the correct IDs for the studies for each particular chart. The items given were just an example of what you would enter. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-05-22 18:03:25] |
Sawtooth - Posts: 4238 |
what I would really like to be alerted on, is the Higher Low (HL) and Lower High (LH)
Use a formula like this on the Alerts tab of the Color Bar Based On Alert Condition study:=OR(ID1.SG2=1,ID1.SG2=3) -where ID1 is the Zigzag study; edit the ID# to match the one you are using. Note: 'Display HH,HL,LL,LH Labels' must be set to Yes. |
To post a message in this thread, you need to log in with your Sierra Chart account: