Support Board
Date/Time: Tue, 04 Nov 2025 05:30:46 +0000
[Programming Help] - need help with alert condition formula
View Count: 915
|   [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: 4285 | 
| 
                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:
