Market closed

Posted By: danatrader

Market closed - 03/29/20 22:09

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 picture 2020-03-30 00_07_55-.png
Attached picture 2020-03-30 00_07_55-.png
Posted By: danatrader

Re: Market closed - 04/01/20 22:29

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 picture market-closed-script-crash.png
Posted By: jcl

Re: Market closed - 04/06/20 12:21

No, I don't think Zorro can open a closed market or fix a crashed script. Humans must do that.
Posted By: danatrader

Re: Market closed - 04/07/20 13:52

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

Re: Market closed - 04/07/20 14:35

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.
Posted By: danatrader

Re: Market closed - 04/08/20 06:45

It works, no crash tonight.

Thank you both a lot for all your efforts.

And I like that kind of humor laugh
© 2024 lite-C Forums