zero divide in Zorro.mq4

Posted By: Smallz

zero divide in Zorro.mq4 - 01/15/23 08:13

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 File
20230115.log  (36 downloads)
Attached picture Capture.PNG
Posted By: Grant

Re: zero divide in Zorro.mq4 - 01/15/23 10:30

MT doesn't recognize the symbol 'spx500' (error code 4106), see https://book.mql4.com/appendix/errors
Posted By: Smallz

Re: zero divide in Zorro.mq4 - 01/16/23 06:04

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 picture Capture.PNG
Posted By: Grant

Re: zero divide in Zorro.mq4 - 01/16/23 09:16

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

Re: zero divide in Zorro.mq4 - 01/16/23 19:28

Interesting. Can you think of a place other than the asset list? it'snot in the code for sure.
Posted By: Grant

Re: zero divide in Zorro.mq4 - 01/16/23 20:42

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

Re: zero divide in Zorro.mq4 - 01/18/23 12:17

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
Posted By: Smallz

Re: zero divide in Zorro.mq4 - 01/20/23 06:53

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

Re: zero divide in Zorro.mq4 - 01/20/23 06:54

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?
© 2024 lite-C Forums