bali2002:
Is there any way to play the alert ONLY ONCE?
Is there any way to play the alert ONLY ONCE?
- Only send the alert for bar zero
- Only send the alert when it crosses, not when it is above.
- if (above=true) == if (true==true) redundant, if(above)
- above is never set/cleared
- email sent is never set/cleared
- You have two alerts above and below, why do you have 4 conditions?
static datetime nextAlert; if (AtrBuffer[0]>Level && TimeCurrent() > nextAlert){ nextAlert=Time[0] + Period() * 60; Alert(...) }
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have an ATR indi that sends an alert once the line crosses certainl level
The problem is, the alert keeps repeating continously!
Is there any way to play the alert ONLY ONCE?
Thanks in advance!!