|
Shutdown by timeout
Hi everyone,
I'm new to the forum so excuse me if this is not the right place to ask this question. I have written a script for MT4 and basically it waits until the start of a new daily bar to perform it's calculations. The problem I have is that after a short while the script seems to hang up and, when I go to remove it, I get 'shutdown by timeout' in the experts tab of the terminal window. The beginning code goes like this:
timeold=TimeDay(Time[0]);
timenow=timeold;
while(timeold == timenow)
{
timenow=TimeDay(Time[0]);
}
Does anyone know why this would be occurring? Is there a time limit on a script executed on a chart?
Also I have been testing with FXDD because they are one of the few companies who incorporate the odd Sunday data and thus allow me to create automated pivot points without Monday always being messed up. However they are not supporting MT4 in a live environment. Does anyone know a company that supports MT4 and does not add the three or four bars of Sunday night data?
Thanks for all your help.
Last edited by RobM; 05-08-2006 at 07:07 PM.
|