View Single Post
  #2 (permalink)  
Old 01-14-2008, 04:37 PM
JFonseca JFonseca is offline
Freshman
 
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
JFonseca is on a distinguished road
Default

Hi,

I have also already tried with Open[0] and with Time[0] and none worked. I found out that when the EA returns to the beggining, it forgets the XY value.

I did this:

datetime XY;
Print ("before if XY = ", XY)
if (XY != Time[0])
{
Execute program
}
XY = Time [0];
Print ("End of program XY = ", XY)
return (0);
}

What´s wrong with this? How can I fix it?

Thanks,

J Fonseca
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast