Support Board
Date/Time: Mon, 19 May 2025 12:30:49 +0000
Alert when going above over night low/high.
View Count: 292
[2024-02-06 12:06:39] |
User666015 - Posts: 66 |
Hi all, I'm having trouble setting up a study alert for my overnight high/low lines. I'm using the High/Low for Time Period study to draw a line that moves to the highest/lowest points only during the evening session, then stays stationary when the NY session opens. This works great. I want to alert when price actually goes above the overnight high or below the overnight low, so that it does not alert when the line is moving in the evening session (as price never goes above or below because the line moves with price). I though this would simply be done with =C>ID9.SG2 on the high line and =C<ID9.SG2 on the low line - but it doesn't work, it alerts when price hits the line. I know this is simple, but I'm very new to Sierra Chart so any help much appreciated! Thanks, Bill |
[2024-02-06 14:55:21] |
Sawtooth - Posts: 4217 |
Try this: =AND(OR(C>ID9.SG1, C<ID9.SG2), BARTIME>TIME(9,30,0), BARTIME<TIME(18,0,0)) |
[2024-02-06 15:02:25] |
User666015 - Posts: 66 |
Thanks Sawtooth, I really like the idea of using bartime, I'll be using that all over! According to alert manager the above alert line has a problem: Alert Formula Error - Chart: NQH24 [CV][M] 5 Min #7 | Study: ONH/ONL | Error: #SYNTAX! | Formula: =AND(OR(C>ID9.SG1, C<ID9.SG2), BARTIME>TIME(14,30,0), BARTIME<TIME(21,0,0) | No alert sound/email. Cheers, Bill |
[2024-02-06 15:20:15] |
Sawtooth - Posts: 4217 |
You need a closing parenthesis for the AND statement: =AND(OR(C>ID9.SG1, C<ID9.SG2), BARTIME>TIME(14,30,0), BARTIME<TIME(21,0,0)) |
[2024-02-06 15:53:46] |
User666015 - Posts: 66 |
I should have seen that... That's great, thanks very much for your help. Bill |
To post a message in this thread, you need to log in with your Sierra Chart account: