Existing asset not found

Posted By: pcz

Existing asset not found - 09/27/16 20:07

I tried to run Z12 strategy in the newest Zorro version. I edited the AssetsFix.csv accordingly to reflect different symbol names. All the assets work fine except UK100. I get Error 053: UK100 unavailable at this time. The broker's corresponding symbol is called '100GBP'. Maybe a symbol starting with a number is parsed in a wrong way somehow?
Posted By: jcl

Re: Existing asset not found - 09/28/16 07:45

Maybe - we have to check. Is this with the MT4 bridge or a direct broker connection?
Posted By: pcz

Re: Existing asset not found - 09/28/16 08:15

MT4 bridge
Posted By: jcl

Re: Existing asset not found - 09/28/16 09:58

Can you check in the MT4 Experts log if the '100GBP' appears there, or if the symbol was modified in some way?
Posted By: pcz

Re: Existing asset not found - 09/28/16 17:58

It's the log file in MetaQuotes\Terminal\[the_long_code]\MQL4\Logs I assume?

In the file there's no mention of 100GBP or anything similar. All the other Z12 symbols are there.
Posted By: jcl

Re: Existing asset not found - 09/29/16 08:50

Hmm, strange. I can at a glance not see in the code where a number is parsed differently, but I've forwarded this to the developers for looking into it. Thanks for reporting!
Posted By: jcl

Re: Existing asset not found - 09/29/16 11:37

Ok, I was informed that a symbol must indeed begin with a letter. Otherwise it is not used.

This will be fixed in the next update. Until then, you can either remove UK100 from the .fac file, or edit the "assetFix" function in the Zorro EA for replacing 'UK100' with '100GBP'.

if(Asset == "UK100") return "100GBP";
Posted By: pcz

Re: Existing asset not found - 10/02/16 18:03

Thank you for the advice!

(I don't want to spam it here but I feel like I have to thank you from time to time for all your work - a "thank you" button would be nice:))
Posted By: boatman

Re: Existing asset not found - 10/03/16 03:38

+1 for johan's thank you button!
Posted By: pcz

Re: Existing asset not found - 10/05/16 12:48

FYI - I edited the EA as proposed, compiled and reattached but now Zorro hangs during MT4 login when running Z12. With the other strategies I'm using it works fine even after stopping and resuming the trading. So maybe there's something else besides assetFix function that has to be taken into account. I guess I'll wait for the next release.
Posted By: ytc

Re: Existing asset not found - 12/01/16 13:29

jcl's guide works for me.

I got similar issue that "Error 053: UK100 unavailable at this time" when trading Z12.
My broker's corresponding symbol is called ".UK100Cash", so I added a line in the assetFix function of Zorro EA(Zorro.mq4).

if(Asset == "UK100") return ".UK100Cash";

Then I save it and copy the mq4 file to the broker's MT4.
Restart Zorro and MT4.
Drag Zorro EA to a chart of MT4.
Press Trade and it worked.

TRY IT!
© 2024 lite-C Forums