Does Alert(); dont work in EA Scripts
Heino:
Yes it does...Does Alert(); dont work in EA Scripts or what is the problem by mijn Scriptje?
I write there Alert(); but nothing habens.
Cut and paste this into editor and save to ...\experts\scripts\<scriptName.mq4> and then compile it <F5>...
int start()
{
Alert("Alert() *does* work in script");
return(0);
}
from Terminal > Experts tab2008.03.18 09:13:49 alertTestScript GBPUSD,Daily: removed
2008.03.18 09:13:49 alertTestScript GBPUSD,Daily: uninit reason 0
2008.03.18 09:13:49 alertTestScript GBPUSD,Daily: Alert: Alert() *does* work in script
2008.03.18 09:13:49 alertTestScript GBPUSD,Daily: loaded successfully
from Terminal > Journal tab
2008.03.18 09:13:49 Script alertTestScript GBPUSD,Daily: removed
2008.03.18 09:13:49 Script alertTestScript GBPUSD,Daily: loaded successfully
The Alert() output
Ok, you are right, men, thank you for example, but I have test it now in Strategytester :-) and there it dont work, why not not?
Read article Testing Features and Limits in MetaTrader 4
Some functions are processed/passed without output
These are Sleep(), Alert(), SendMail(), PlaySound(), MessageBox(), WindowFind(), WindowHandle(), WindowIsVisible()
These are Sleep(), Alert(), SendMail(), PlaySound(), MessageBox(), WindowFind(), WindowHandle(), WindowIsVisible()
Many things may not work in Strategy Tester to improve the performance during the test.
Ok, thank you for your Infos, no matter, MetaTrader is anyway god :-)
Does Alert(); dont work in EA Scripts or what is the problem by mijn Scriptje?
I write there Alert(); but nothing habens.