Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
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
5 registered members (AndrewAMD, TipmyPip, VoroneTZ, Quad, 1 invisible), 688 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
zero divide in Zorro.mq4 #487089
01/15/23 08:13
01/15/23 08:13
Joined: Mar 2019
Posts: 22
S
Smallz Offline OP
Newbie
Smallz  Offline OP
Newbie
S

Joined: Mar 2019
Posts: 22
Hi

Has anybody faced this?
I installed GlobalPrime's MT4 and then copied the files correctly into the data folder.
I was able to downlaod the asset list and run a backtest based on it. All good so far.

Then closed MT4 and restarted it. Then I tried to connect again and got the error as seen below. Also, Zorro could't connect.

See attachments for more details.

Thanks!

Attached Files
20230115.log (36 downloads)
Capture.PNG
Re: zero divide in Zorro.mq4 [Re: Smallz] #487090
01/15/23 10:30
01/15/23 10:30
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
MT doesn't recognize the symbol 'spx500' (error code 4106), see https://book.mql4.com/appendix/errors

Re: zero divide in Zorro.mq4 [Re: Grant] #487093
01/16/23 06:04
01/16/23 06:04
Joined: Mar 2019
Posts: 22
S
Smallz Offline OP
Newbie
Smallz  Offline OP
Newbie
S

Joined: Mar 2019
Posts: 22
Originally Posted by Grant
MT doesn't recognize the symbol 'spx500' (error code 4106), see https://book.mql4.com/appendix/errors


Thanks. My asset list does not have this symbol, though, see attached

Attached Files Capture.PNG
Re: zero divide in Zorro.mq4 [Re: Smallz] #487095
01/16/23 09:16
01/16/23 09:16
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
OK, but somewhere there's a call for the spx500 symbol which causes this zero divide issue (same time stamp).

It's not a connection issue between Zorro & MT, see time stamp 9:04:29.617. The disconnected message before(!) is normal behavior.

Last edited by Grant; 01/16/23 16:16.
Re: zero divide in Zorro.mq4 [Re: Grant] #487103
01/16/23 19:28
01/16/23 19:28
Joined: Mar 2019
Posts: 22
S
Smallz Offline OP
Newbie
Smallz  Offline OP
Newbie
S

Joined: Mar 2019
Posts: 22
Interesting. Can you think of a place other than the asset list? it'snot in the code for sure.

Re: zero divide in Zorro.mq4 [Re: Smallz] #487105
01/16/23 20:42
01/16/23 20:42
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline
Member
Grant  Offline
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
So there's no asset call like 'asset("SPX500")' in your script?

I notice that you have the AUD/USD asset selected in your Zorro window, but your Zorro EA has been attached to a EUR/USD screen in MT. Do you run a multi-asset script? If this is the case than make sure that all of your asset calls refer to the correct symbol in your asset list.

Other than that, I can't explain why there's a reference to the 'SPX500' symbol.

Re: zero divide in Zorro.mq4 [Re: Smallz] #487107
01/18/23 12:17
01/18/23 12:17
Joined: Jan 2023
Posts: 1
Oppuurs
K
ktroch Offline
Guest
ktroch  Offline
Guest
K

Joined: Jan 2023
Posts: 1
Oppuurs
Hi,

Having same issue... any resolution to this issue found?

Thanks

>> update fixed by adjusted the code of the zorro EA (zorro.mq4) --> as suggested in other thread --> add break statement

Last edited by ktroch; 01/19/23 20:10.
Re: zero divide in Zorro.mq4 [Re: Smallz] #487112
01/20/23 06:53
01/20/23 06:53
Joined: Mar 2019
Posts: 22
S
Smallz Offline OP
Newbie
Smallz  Offline OP
Newbie
S

Joined: Mar 2019
Posts: 22
I do run a multi asset script. But, it should owrk like that. It worked on MT5, without any issue. OK, different BRoker, where SPX500 was SPX500 and not US500.
Assetlist in the Accounts.csv is the same as the one called in the script...

Re: zero divide in Zorro.mq4 [Re: ktroch] #487113
01/20/23 06:54
01/20/23 06:54
Joined: Mar 2019
Posts: 22
S
Smallz Offline OP
Newbie
Smallz  Offline OP
Newbie
S

Joined: Mar 2019
Posts: 22
Originally Posted by ktroch
Hi,

Having same issue... any resolution to this issue found?

Thanks

>> update fixed by adjusted the code of the zorro EA (zorro.mq4) --> as suggested in other thread --> add break statement


Oh, interesting. Can you pls send a link to that thread?


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