| / | Forum |
|
ScottB
2006.08.16 19:41
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.
|
|
An alternative use of the Sleep() function in the realization of pauses between EA's actions is proposed. The approach under consideration allows a smart use of machine time. |
|
Irtron
2006.08.17 03:57
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 |
|
ScottB
2006.08.17 04:30
Irtron wrote: 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 |