Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Nymphodora, Quad), 923 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Zorro 2.50 MT4 bridge issue #486490
08/30/22 08:42
08/30/22 08:42
Joined: Aug 2022
Posts: 65
alun Offline OP
Junior Member
alun  Offline OP
Junior Member

Joined: Aug 2022
Posts: 65
Hello,

I have connected Zorro 2.50 to my MT4 4.00 1359 (26 Jul 2022)

Using Z1 strategy.

I see prices not ticking in MT4 every time when Zorro is in Trade mode (connected to the EA). The MT4 UI is not responsible either. The clock in MT4 is ticking fine though.

Other issue is Z1 strategy in Zorro keeps printing the same price every 4 hours?

Is latest Zorro-MT4 EA bridge broken? Does it have some aggressive request/response loop, which doesn't allow other parts of MT4 to run?

Last edited by alun; 08/30/22 08:44.
Re: Zorro 2.50 MT4 bridge issue [Re: alun] #486492
08/30/22 13:15
08/30/22 13:15
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
Have you tried the TradeTest script? If that's working well, then there might be an issue with the Z1 script.

AFAIK it's still Holiday season, so it might take some time before JCL (Zorro's main developer) can assist.

Re: Zorro 2.50 MT4 bridge issue [Re: Grant] #486493
08/30/22 13:49
08/30/22 13:49
Joined: Aug 2022
Posts: 65
alun Offline OP
Junior Member
alun  Offline OP
Junior Member

Joined: Aug 2022
Posts: 65
Thanks for the answer, Grant.

I have tried to tamper with Zorro.mt4 code

I've uncommented `Comment("Runs ",count," Loops ",loops); `

And seems like it's ever growing and never stops. So the problem was with the main loop.

I have made `uint loops = 0` non static and added loops limit in a single run ` while(cmd != 0 && loops < 500) `.

Now it works ok - MT4 is responsive and prices are updated.

But I'm still seeing Loops 1..2/Loops 500 blinking (a screencast is here https://drive.google.com/file/d/1XbQCqY3A8jYroq1Xq1p_2Dt3ljzZ8voW/view?usp=sharing)

So I assume Zorro sends too many unnecessary messages to the bridge.

Same problem with Z1 or TradeTest.

UPD: The code of the command which spams the channel cmd=170 (CMD_ASSET)

Last edited by alun; 08/30/22 14:22.
Re: Zorro 2.50 MT4 bridge issue [Re: alun] #486494
08/30/22 14:50
08/30/22 14:50
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
Due to my licence, I'm unable to run the same setup, so I can't assist you on that.

Instead, I'm using Zorro 2.44 with it's older MT4 plugin (version 4.26) and this combo works fine for me with the latest built of MT4. There was no need to modify the Zorro EA.

Re: Zorro 2.50 MT4 bridge issue [Re: Grant] #486495
08/30/22 15:11
08/30/22 15:11
Joined: Aug 2022
Posts: 65
alun Offline OP
Junior Member
alun  Offline OP
Junior Member

Joined: Aug 2022
Posts: 65
No problem. I think I'm fine for now.

I'm on a free Zorro license, with a demo MT4 account.

Zorro 2.52
ZorroMT4.dll 4.26
Zorro.mq4 (EA) 2.12

The issue reproduced consistently across multiple brokers.

Re: Zorro 2.50 MT4 bridge issue [Re: alun] #486496
08/30/22 19:07
08/30/22 19:07
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
So you're able to connect with MT4 without a Zorro S license?
That's interesting. I thought this wasn't possible, see https://zorro-project.com/manual/en/restrictions.htm

Re: Zorro 2.50 MT4 bridge issue [Re: Grant] #486502
08/31/22 08:32
08/31/22 08:32
Joined: Aug 2022
Posts: 65
alun Offline OP
Junior Member
alun  Offline OP
Junior Member

Joined: Aug 2022
Posts: 65
Yes, it works but only for demo accounts.

I have a problem though that it's not updating price in Zorro.

I'm not sure if it's related to license or the bug I've described above. I believe it's the second.


Attached Files Screenshot 2022-08-31 at 09.23.41.png
Last edited by alun; 08/31/22 08:33.
Re: Zorro 2.50 MT4 bridge issue [Re: alun] #486503
08/31/22 08:42
08/31/22 08:42
Joined: Aug 2022
Posts: 65
alun Offline OP
Junior Member
alun  Offline OP
Junior Member

Joined: Aug 2022
Posts: 65
It's definitely some bug with the latest Zorro/Bridge.

Since TradeTest worked in my MT4.

Also found this doc:
https://zorro-project.com/manual/en/mt4plugin.htm

Re: Zorro 2.50 MT4 bridge issue [Re: alun] #486504
08/31/22 09:17
08/31/22 09:17
Joined: Aug 2022
Posts: 65
alun Offline OP
Junior Member
alun  Offline OP
Junior Member

Joined: Aug 2022
Posts: 65
Ok I've finally got this fixed.

What happened:
1) My NAS100 called USTEC and I have misspelled it for UCTEC
2) I've seen that in the log and fixed
3) Nevertheless the message got stuck in the Zorro-MQ4 message queue and the expert tried to process CMD_ASSET for UCTEC endlessly

This caused both issues - blocking MT4 UI and other threads by the endless while loop in Zorro.mq4 and not updating prices in Zorro itself, since CMD_ASSET was sent for UCTEC only and not for other assets.

A workaround: remove the pipe file for IPC between Zorro and the EA - C:\Users\Admini~1\AppData\Local\Temp\mt4sock*.sys

Suggested fix - that file should be automatically removed when both EA and Zorro broker connection are not in use.

Re: Zorro 2.50 MT4 bridge issue [Re: alun] #486515
08/31/22 16:17
08/31/22 16:17
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
Good to hear that you made progress. I expect that JCL is back online in September for further support.

Page 1 of 2 1 2

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