Support Board
Date/Time: Wed, 22 Jan 2025 04:13:48 +0000
[Programming Help] - Making an Alert Condition Formula Function During Certain Times
View Count: 626
[2018-08-29 16:22:07] |
User164231 - Posts: 278 |
Hi Team SC, I only want the color background alert to be triggered during this period. What is the issue with this formula; =AND((=ID2.SG1>ID2.SG1[-1]), BARTIME >= TIME(9, 30, 0), BARTIME <= TIME(16, 30, 0)) Please advise. thanks. |
[2018-08-29 21:28:23] |
Xfanman1 - Posts: 320 |
I cleaned up your code, try what I've shown below. I don't know what your ID2 condition is testing but I tried this with a MA in a positive slope between your times and this code appears to work as you wanted. =AND(ID2.SG1>ID2.SG1[-1],BARTIME>=TIME(9,30,0),BARTIME<=TIME(16,30,0)) -- Scott |
[2018-08-30 03:42:28] |
User164231 - Posts: 278 |
Thanks Scott, it worked like a charm!
|
To post a message in this thread, you need to log in with your Sierra Chart account: