You could use a ctr(counter) to have the no of alerts/alarms and that function should exit after the no of alerts set.
Something like, If Alert_Cntr <5, keep alerting and exit if it is = 5.
And within that loop increment the Alert_Cntr. And depending on the timeframe you use, you can reset the counter to 0 again if that is required so that, any new fresh alerts should not be missed.
Goodluck.
You could use a ctr(counter) to have the no of alerts/alarms and that function should exit after the no of alerts set.
Something like, If Alert_Cntr <5, keep alerting and exit if it is = 5.
And within that loop increment the Alert_Cntr. And depending on the timeframe you use, you can reset the counter to 0 again if that is required so that, any new fresh alerts should not be missed.
Goodluck.
Hi Kent,
Thanks for the quick response. It is a good idea. I'll try to implement it.
One quick question though. How can I reset the counter to 0 for Daily charts? What and where I need for that? Any suggestions.
Thanks again

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone,
I've trying to code a simple indicator which Alerts when price reaches Yesterday's High and Low. The Alert works fine but the only problem is that I want it to stop alerting once it has alerted already. My indicator keep alerting until I manually remove it.
In the code I've created a "test" section, which is currently commented. This section can be used to create a temporary alert price to test the indicator, so we don't have to wait for the price to reach Yesterday High/Low.
I would appreciate your comments and suggestions