Is there a way to clear the alert queue programmatically with an expert? During
testing, I can end up with a large number of alerts and the only way I know to
clear them is to stop and restart the entire platform; seems there has to be a
better way.
- MQL5 Wizard: Development of trading robots for MetaTrader 5
- Modifying a Position - Trade - MetaTrader 5 for iPhone
- Modifying a Position - Trade - MetaTrader 5 for Android
Alerts can be disabled as well as any other functionality that is not necessary while testing in the first place, e.g.
if (!IsTesting()) Alert("Live trading event");Besides this technique can save some processing time
Irtron:
Alerts can be disabled as well as any other functionality that is not necessary while testing in the first place, e.g.
Alerts can be disabled as well as any other functionality that is not necessary while testing in the first place, e.g.
if (!IsTesting()) Alert("Live trading event");Besides this technique can save some processing time
Thanks for reminding me of that but I actually want the alerts, I just want to clear out the dialog box so I don't have so many. I can get dozens because I am testing an order sending loop. If I run it twice without closing the app to clear the dialog box, it is very difficult to tell where the first set ended and the second set started. I want something like AlertClearDialog :) but cannot seem to find a way to do that short of exiting the terminal and restarting it.
Scott

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