Support Board
Date/Time: Wed, 30 Apr 2025 10:52:28 +0000
Alert for High / Low in Daily OHLC study
View Count: 99
[2025-04-01 17:14:46] |
User269912 - Posts: 18 |
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: 39559 |
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: 18 |
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: 39559 |
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: