Enivid, the ea works fine, it opens and closes orders at the specified times, Why should I change the codes?
for (int ii=OrdersTotal()-1; ii>=0; ii--) { if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
int Magic;
extern int Magic = 111111;
Magic=NYear+NMonth+NDay+NHour+NMin;
if ((OrderSymbol()==Symbol()) && (OrderMagic() == Magic)) {
Yeah, sorry for that. I forgot how the function is actually called.There is an error saying: 'OrderMagic' - function not defined, so I changed that to OrderMagicNumber, I will let you know if that worked...the market is closed now.
No, I am currently working on other things. Besides I am still not sure that this is a good idea to try catching the market that way.Are you working on this Enivid?