I have a working EFS that I obtained from the Library. I have added alerts that work, but fire several times per opening candlestick. Can I add code so that the alerts will only fire once at the closing of the candlestick if the conditions set out in the EFS are still valid at that point?
Announcement
Collapse
No announcement yet.
How can I make alerts trigger only once per candlestick?
Collapse
X
-
Re: How can I make alerts trigger only once per candlestick?
scotti
Check for your conditions to be true [on the prior bar] at BARSTATE_NEWBAR ie on the first tick of a new bar.
See the AlertMA.efs included in the Alert Examples folder of Formulas for a basic example of this. Also if you search the forums you will find many other examples as this topic has been covered at length before
Alex
Originally posted by scotti
I have a working EFS that I obtained from the Library. I have added alerts that work, but fire several times per opening candlestick. Can I add code so that the alerts will only fire once at the closing of the candlestick if the conditions set out in the EFS are still valid at that point?
Comment