MQL4 - automated forex trading   /  

Forum

Simple question

Back to topics list To post a new topic, please log in or register

avatar
42
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.
article

To Sleep, or Not to Sleep?

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.


avatar
364
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

avatar
42
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
Back to topics list  

To add comments, please log in or register