Hi guys, I'm encountering an unexpected behaviour (at least for me) in the last hours... I'm trying to test live on demo accounts one of my strategies...but zorro tells me the market is Closed (I can see it in the Status box, below the login). Even though the prices in the status box change, the bars don't get generated.
I have tried on two different MT4 plaforms where I'm used to connect zorro to. I can see the price moving on both the plaform and I am also able to open trades directly on the MT4s.
I tried to printf markte(UTC,0) and it actually equals to false. EndMarket prints 1600, so I thought the market closes each days at 16:00 and would make sense. But the day before I traded with no problem at late evening... so... I really don't understand. Also I tried to set StartMarket = EndMarket = 0 (as explained in the manual) to remove the end of the market but it didn't help.
I thought to the weekend issue, but the variable shows 52000... so..?
Can you please help me to understand what is happening? Thanks you so much!
Re: Market closed on friday at 17 UTC?
[Re: kerplunk1899]
#479413 03/27/2018:1903/27/2018:19
Printing ldow(UTC,0) shows "6". So for zorro it's saturday already. This explains it all. But the clock of windows is set on the UCT time (right now it's 7.16 PM)... how is this happening?? Thanks again
Re: Market closed on friday at 17 UTC?
[Re: kerplunk1899]
#479416 03/27/2019:4503/27/2019:45
Well it happens with ANY strategy... even with the "original" ones. So I'm guessing it's not a matter of code...(I have traded just fine only this morning). Plus now the markets are closed for real. Let's see how it goes on monday... and next friday!
Don't you think this is about the clock?
Last edited by kerplunk1899; 03/27/2021:47.
Re: Market closed on friday at 17 UTC?
[Re: kerplunk1899]
#479422 03/27/2021:5303/27/2021:53
Maybe I understood. On my (new) VPS the time zone of the windows clock was set on UTC-8.... BUT the time was set as if it was UTC... really weird... I changed it manually and now zorro seem to show the right time. Let's see next week. Thanks for the support.
Re: Market closed on friday at 17 UTC?
[Re: kerplunk1899]
#479423 03/27/2023:1403/27/2023:14
Also, print all kinds of info about the time. year, month, day, hour, minutes, seconds. Do it both in UTC and your local time zone. Strictly check NOW and not bar zero.