Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Adapting to different asset names #425204
06/28/13 23:27
06/28/13 23:27
Joined: Jun 2013
Posts: 15
C
cbase Offline OP
Newbie
cbase  Offline OP
Newbie
C

Joined: Jun 2013
Posts: 15
Currently, I am trying to set up a Z2 test on a demo account with a broker that uses other names for the indices, e.g. I assume that FTSE100 in this broker's portfolio is UK100 in Z2, DAX30 is GER30 and so on. Can I just change the names in the file Data/Z12.fac or does that mess up things?

Roland

Re: Adapting to different asset names [Re: cbase] #425222
06/29/13 11:51
06/29/13 11:51
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
That will mess up things. Instead you need to add the name conversion to the assetFix function in the Zorro.mq4 script. Example:

Code:
string assetFix(string Asset)
{
	if(Asset == "UK100") return("FTSE100");
	if(Asset == "GER30") return("DAX30");
	...
// rest of the function goes here
}


Re: Adapting to different asset names [Re: jcl] #425226
06/29/13 14:22
06/29/13 14:22
Joined: Jun 2013
Posts: 15
C
cbase Offline OP
Newbie
cbase  Offline OP
Newbie
C

Joined: Jun 2013
Posts: 15
Thanks, I'll try that ....

Re: Adapting to different asset names [Re: jcl] #425229
06/29/13 15:52
06/29/13 15:52
Joined: Jun 2013
Posts: 15
C
cbase Offline OP
Newbie
cbase  Offline OP
Newbie
C

Joined: Jun 2013
Posts: 15
I changed the Zorro.mq4 script as you suggested. NAS100 seems to be called NQ100 with the broker I am using, and I also put this conversion into the EA script.

When I click "Trade", Zorro starts collecting the initial data, until it says "Error 053: NAS100 prices unavailable" (nothing about the other assets, though). After that, the program hangs for quite a while (no progress bar, Windows grays out the window), until the last message appears: "Read Z12.fac Z12.par ........................" and the program seems to crash (Windows keeps showing the "blue donut" cursor and the window remains completely unresponsive).

Do I have to enter the changed asset names somewhere else so Zorro can find them on startup?

Re: Adapting to different asset names [Re: cbase] #425230
06/29/13 16:05
06/29/13 16:05
Joined: Jun 2013
Posts: 15
C
cbase Offline OP
Newbie
cbase  Offline OP
Newbie
C

Joined: Jun 2013
Posts: 15
Okay, I just found the solution myself. I just had not read correctly: NAS100 is not called NQ100 with my broker, but [NQ100]. I have included the brackets now and everything seems to work.


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