Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 17:40:22 +0000



[Programming Help] - simple alert

View Count: 900

[2016-07-12 19:57:51]
Crtfyd - Posts: 277
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: 277
Is this addressed anywhere in the support?
[2016-07-28 22:33:06]
Sawtooth - Posts: 3993
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:

Login

Login Page - Create Account