Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 470 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
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