Gamestudio Links
Zorro Links
Newest Posts
Indicator coding
by danatrader. 05/30/20 21:41
Out of Sample
by AndrewAMD. 05/30/20 21:12
Trading Community Project
by danatrader. 05/30/20 20:28
MT4/5 - wrong M1 time
by Grat. 05/30/20 19:14
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 05/30/20 15:18
Windows 10 file_write error
by AndrewAMD. 05/30/20 13:57
stencil blur does not work - SOLVED
by NicolaB. 05/30/20 12:13
Question about Pattern - Workshop7
by danatrader. 05/30/20 09:09
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
11 registered members (3run, danatrader, Grat, alibaba, ozgur, AndrewAMD, kvm, Dooley, 2 invisible), 521 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
PBSeven, Hardi01, Giuseppe, AdamWu, gariki
18460 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Market closed on friday at 17 UTC? #479412
03/27/20 18:11
03/27/20 18:11
Joined: Sep 2018
Posts: 25
K
kerplunk1899 Offline OP
Newbie
kerplunk1899  Offline OP
Newbie
K

Joined: Sep 2018
Posts: 25
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/20 18:19
03/27/20 18:19
Joined: Sep 2018
Posts: 25
K
kerplunk1899 Offline OP
Newbie
kerplunk1899  Offline OP
Newbie
K

Joined: Sep 2018
Posts: 25
Could it be an issue related to the time of my computer?
The status box shows 01.19...

Re: Market closed on friday at 17 UTC? [Re: kerplunk1899] #479415
03/27/20 19:17
03/27/20 19:17
Joined: Sep 2018
Posts: 25
K
kerplunk1899 Offline OP
Newbie
kerplunk1899  Offline OP
Newbie
K

Joined: Sep 2018
Posts: 25
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/20 19:45
03/27/20 19:45
Joined: Feb 2017
Posts: 979
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 979
Chicago
Try NOW instead of 0

Re: Market closed on friday at 17 UTC? [Re: kerplunk1899] #479417
03/27/20 21:02
03/27/20 21:02
Joined: Sep 2018
Posts: 25
K
kerplunk1899 Offline OP
Newbie
kerplunk1899  Offline OP
Newbie
K

Joined: Sep 2018
Posts: 25
Still 6

Re: Market closed on friday at 17 UTC? [Re: kerplunk1899] #479418
03/27/20 21:03
03/27/20 21:03
Joined: Feb 2017
Posts: 979
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 979
Chicago
Source code?

Re: Market closed on friday at 17 UTC? [Re: kerplunk1899] #479420
03/27/20 21:45
03/27/20 21:45
Joined: Sep 2018
Posts: 25
K
kerplunk1899 Offline OP
Newbie
kerplunk1899  Offline OP
Newbie
K

Joined: Sep 2018
Posts: 25
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]

Last edited by kerplunk1899; 03/27/20 21:47.
Re: Market closed on friday at 17 UTC? [Re: kerplunk1899] #479422
03/27/20 21:53
03/27/20 21:53
Joined: Sep 2018
Posts: 25
K
kerplunk1899 Offline OP
Newbie
kerplunk1899  Offline OP
Newbie
K

Joined: Sep 2018
Posts: 25
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/20 23:14
03/27/20 23:14
Joined: Sep 2018
Posts: 25
K
kerplunk1899 Offline OP
Newbie
kerplunk1899  Offline OP
Newbie
K

Joined: Sep 2018
Posts: 25
I tried with crypto... whose market is open... but still I get "Closed" and no bars generated... I'm giving up eek

Re: Market closed on friday at 17 UTC? [Re: kerplunk1899] #479424
03/27/20 23:30
03/27/20 23:30
Joined: Feb 2017
Posts: 979
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 979
Chicago
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.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1