Support Board
Date/Time: Thu, 12 Jun 2025 08:19:11 +0000
Study alerts
View Count: 1753
[2022-11-03 09:07:51] |
User585104 - Posts: 150 |
Hi, I am looking to set up an alert within a study. I have searched this message board and found others asking the same question but no complete solution/answer. Previously people have been pointed to this "OR(CROSSOVER(C, SG13), CROSSOVER(C, SG1), CROSSOVER(C, SG2), CROSSOVER(C, SG3), CROSSOVER(C, SG4)" but when I enter it into the alert condition box and hit apply I get a syntax error. I assume something else needs to also be added but I havent a clue what. What else do I need to add to it? I just want an alert when price touches these levels. Thanks for any help |
[2022-11-03 15:22:34] |
John - SC Support - Posts: 40376 |
The information on setting up Alerts can be found at the following link: Study/Chart Alerts And Scanning We would need more information on what studies you are using and how you want the alert to be able to help you further. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2022-11-03 16:03:31] |
User585104 - Posts: 150 |
Hi John, I have gone through the link but I'm none the wiser. I have have seen you previously refering to this page Study/Chart Alerts And Scanning: Alert Formula Examples #40 "OR(CROSSOVER(C, SG13), CROSSOVER(C, SG1), CROSSOVER(C, SG2), CROSSOVER(C, SG3), CROSSOVER(C, SG4)" It is the pivot point study that I am trying to set up an audio alert up for. Thank you |
[2022-11-03 17:34:49] |
John - SC Support - Posts: 40376 |
If you are wanting what that example is stating - an alert for any time the last price crosses the main Pivot Point, R1, R2, S1, or S2 lines, then that is the text to enter. We do, however, see one small mistake. There should be an additional parentheses at the end of the alert formula. So it should look like the following: =OR(CROSSOVER(C, SG13), CROSSOVER(C, SG1), CROSSOVER(C, SG2), CROSSOVER(C, SG3), CROSSOVER(C, SG4)) Hopefully that was your issue. We will correct the example. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2022-11-03 18:12:52] |
User585104 - Posts: 150 |
That works great! Is there by chance a simple addition/modification to trigger the alert if price goes say within 2 ticks of each level? Thank you |
[2022-11-03 20:58:32] |
John - SC Support - Posts: 40376 |
It will get a bit lengthy if you want to check for 2 ticks above or 2 ticks below. Here is one piece of the change you would make. You will need to work out the rest using the same pattern (the ... is for you to fill in): =OR(CROSSOVER(C, SG13 + 2 * TICKSIZE), CROSSOVER(C, SG13 - 2 * TICKSIZE), ...) Just to add complexity for some fun - in the above situation, if the last price moved across the area that was 2 ticks above the Pivot Point you would get an alert. You would then get another alert if the last price moves out of that zone either back 2 ticks above the pivot point or 2 ticks below the pivot point. If you only want it to alert you when it goes INTO the "zone", then you would do the following: =OR(CROSSFROMABOVE(C, SG13 + 2 * TICKSIZE), CROSSFROMBELOW(C, SG13 - 2 * TICKSIZE), ...) For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2022-11-03 20:59:01
|
[2022-11-03 21:15:50] |
User585104 - Posts: 150 |
Yeah I've got it! I'll set up a zone! Man that's perfect, you're star! Thanks a lot =] |
[2022-11-03 22:31:07] |
User585104 - Posts: 150 |
John, So I've written it all out but I get a syntax error. If I enter your text on its own in the alert box should it work for just SG13? =OR(CROSSFROMABOVE(C, SG13 + 2 * TICKSIZE), CROSSFROMBELOW(C, SG13 - 2 * TICKSIZE)) If I enter that on its own I also get a syntax error. Thanks |
[2022-11-04 13:52:17] |
John - SC Support - Posts: 40376 |
My apologies, I had never come across this before, but the issue is related to the parser for the formula. You would need to add extra parentheses around the second parameter for the CROSSOVER functions. So it would look like the following: =OR(CROSSFROMABOVE(C, (SG13 + 2 * TICKSIZE)), CROSSFROMBELOW(C, (SG13 - 2 * TICKSIZE))) And, if we did not mention this, the alert as it is written would need to be entered on the Pivot Point study, since you are not specifying the ID of the study. Refer to the following: Study/Chart Alerts And Scanning: Referencing Other Studies on the Chart For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2022-11-05 13:13:26] |
User585104 - Posts: 150 |
Cheers, I got it working now =]
|
To post a message in this thread, you need to log in with your Sierra Chart account: