Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (dr_panther, Quad, AndrewAMD, 7th_zorro), 945 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Market closed #479444
03/29/20 22:09
03/29/20 22:09
Joined: Mar 2019
Posts: 357
D
danatrader Offline OP
Senior Member
danatrader  Offline OP
Senior Member
D

Joined: Mar 2019
Posts: 357
Today I observed something strange, maybe a b bug?

Version 2.25
Showing market closed although it is open.

Check attachments, maybe it is normal cause of change of the hours, so time is moving, price is moving, market is open, Zorro reports it as closed.

Server timezone is UTC.

Attached Files 2020-03-30 00_07_55-.png2020-03-30 00_07_55-.png
Last edited by danatrader; 03/29/20 22:12.
Re: Market closed [Re: danatrader] #479475
04/01/20 22:29
04/01/20 22:29
Joined: Mar 2019
Posts: 357
D
danatrader Offline OP
Senior Member
danatrader  Offline OP
Senior Member
D

Joined: Mar 2019
Posts: 357
Also I receive crash when placing orders.

From the MT4 log:
1 22:00:00.524 '7251589': order sell 0.01 NZDJPY opening at market sl: 0.000 tp: 0.000 failed [Market is closed]

And attached the output of the Zorro Session.

Isn't Zorro supposed to make sure market is open?

Trade was supposed to be opened at 06 AM JST.

Attached Files market-closed-script-crash.png
Last edited by danatrader; 04/01/20 22:36.
Re: Market closed [Re: danatrader] #479563
04/06/20 12:21
04/06/20 12:21
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
No, I don't think Zorro can open a closed market or fix a crashed script. Humans must do that.

Re: Market closed [Re: danatrader] #479587
04/07/20 13:52
04/07/20 13:52
Joined: Mar 2019
Posts: 357
D
danatrader Offline OP
Senior Member
danatrader  Offline OP
Senior Member
D

Joined: Mar 2019
Posts: 357
Too bad it can't laugh

What I ment is, at the same time I could trade manually in MT4.

I assume I can check in the trading function if or if not market is open?
Is there an advised way to check if market is open, e.g. using tick function?

Re: Market closed [Re: danatrader] #479588
04/07/20 14:35
04/07/20 14:35
Joined: Feb 2017
Posts: 1,726
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,726
Chicago
For a Z system, set BrokerPatch = 8. For a regular script, use brokerCommand(SET_PATCH,8) at the top of your script. This will disable server time.

https://manual.zorro-project.com/brokercommand.htm
https://zorro-project.com/manual/en/zsystems.htm

This should work, assuming that your PC clock is set correctly.

Re: Market closed [Re: danatrader] #479589
04/08/20 06:45
04/08/20 06:45
Joined: Mar 2019
Posts: 357
D
danatrader Offline OP
Senior Member
danatrader  Offline OP
Senior Member
D

Joined: Mar 2019
Posts: 357
It works, no crash tonight.

Thank you both a lot for all your efforts.

And I like that kind of humor laugh

Last edited by danatrader; 04/08/20 06:46.

Moderated by  jcl, Nems, Spirit, Tobias 

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