Support Board
Date/Time: Sun, 19 Jan 2025 08:57:19 +0000
[Programming Help] - need help with alert condition formula
View Count: 800
[2018-04-05 13:23:40] |
User786248 - Posts: 25 |
Hi I am trying to make this alert work from 12am EST to 930 (SG1 > 200 OR SG2 < -200) and from 930 am to 4pm (SG1 >400 OR SG2 <-400) I have this syntax but is not working correctly Any help is appreciated Thanks AND (OR (SG1>20, SG2<-20), BARTIME <= TIME(9, 30, 00), BARTIME >= TIME(23,59,59)) |
[2018-04-05 18:21:05] |
Sawtooth - Posts: 4155 |
Try this: =OR(AND(BARTIME>=TIME(0,0,0),BARTIME<TIME(9,30,0),OR(SG1>200,SG2<-200)),AND(BARTIME>=TIME(9,30,0),BARTIME<TIME(16,0,0),OR(SG1>400,SG2<-400))) |
To post a message in this thread, you need to log in with your Sierra Chart account: