Market closed on friday at 17 UTC?

Posted By: kerplunk1899

Market closed on friday at 17 UTC? - 03/27/20 18:11

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!
Posted By: kerplunk1899

Re: Market closed on friday at 17 UTC? - 03/27/20 18:19

Could it be an issue related to the time of my computer?
The status box shows 01.19...
Posted By: kerplunk1899

Re: Market closed on friday at 17 UTC? - 03/27/20 19:17

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
Posted By: AndrewAMD

Re: Market closed on friday at 17 UTC? - 03/27/20 19:45

Try NOW instead of 0
Posted By: kerplunk1899

Re: Market closed on friday at 17 UTC? - 03/27/20 21:02

Still 6
Posted By: AndrewAMD

Re: Market closed on friday at 17 UTC? - 03/27/20 21:03

Source code?
Posted By: kerplunk1899

Re: Market closed on friday at 17 UTC? - 03/27/20 21: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?
[Linked Image]
Posted By: kerplunk1899

Re: Market closed on friday at 17 UTC? - 03/27/20 21: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.
Posted By: kerplunk1899

Re: Market closed on friday at 17 UTC? - 03/27/20 23:14

I tried with crypto... whose market is open... but still I get "Closed" and no bars generated... I'm giving up eek
Posted By: AndrewAMD

Re: Market closed on friday at 17 UTC? - 03/27/20 23:30

This website tells you if your clock is off:
https://time.is/

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.
© 2024 lite-C Forums