Support Board
Date/Time: Fri, 18 Apr 2025 10:37:15 +0000
[Programming Help] - simple alert
View Count: 987
[2016-07-12 19:57:51] |
Crtfyd - Posts: 281 |
I cant seem to find info on this anywhere. How do I write an alert that alerts when at least three bars have hit the HOD/LOD (High of day)? I have this alert working: =AND( H = ID1.SG2, H[-1] = ID1.SG2,H[-2] = ID1.SG2 ) where ID1.SG2 is the High of the Day. Problem is, that's just if the LAST three bars hit the HOD. How do I write it (or can you direct me to the info in support) for 3 bars hitting the HOD not necessarily consecutive? Thanks |
[2016-07-28 16:04:43] |
Crtfyd - Posts: 281 |
Is this addressed anywhere in the support?
|
[2016-07-28 22:33:06] |
Sawtooth - Posts: 4205 |
You would need to use the Spreadsheet System/Alert study to do this, so that you can count the occurrences. But it begs some questions: 1) When time does the day start? 2) When do you want to start counting the touches? 3) Do you want to count every time it equals the HOD/LOD or every time it makes a new HOD/LOD, or both? 4) Do you want to reset the count if there is a new HOD/LOD? Date Time Of Last Edit: 2016-07-28 22:57:00
|
To post a message in this thread, you need to log in with your Sierra Chart account: