This topic is old and if there was a problem, maybe I fixed it, I don't remember.
But I actually have this Market is closed problem when I'm trying to trade in the Init event, and this happens in the Tester, it works for me when Live. I don't know the reason fot that and I have not investigated it.