DislikedHi,
Years ago I tried to do this with a market trading times tool and from memory ( as In cannot for the life of me find the tool ) I used a comparision between the Broker and Local time and if there was more than 5 minutes difference in the time offset it signalled that the markets had either closed or the platform was off line. The idea behind this was that the Broker time stops updating when the market closes and the Local time keeps ticking on. Hope this helps.Ignored
Else the ea doesn't get to action the comparison of the 2 times. It will just sit still and waiting.
cheers scalpz
Target 2 : Stoploss in the green