Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, Quad, AndrewAMD), 936 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Issue with MT4 - AssetFix file [Re: jcl] #461831
08/24/16 07:16
08/24/16 07:16
Joined: Dec 2014
Posts: 206
Germany
Smon Offline
Member
Smon  Offline
Member

Joined: Dec 2014
Posts: 206
Germany
I tried it with the Z Strategies. I think these use the standard AssetsFix? I'm running Windows XP, and the AssetsFix is under C:\Documents an Settings\Username\Zorro\History

I didn't try yet, but isn't it still possible to edit the MQL4 Code as it was with the old Zorro Bridge?

Re: Issue with MT4 - AssetFix file [Re: Smon] #461835
08/24/16 09:07
08/24/16 09:07
Joined: Dec 2014
Posts: 206
Germany
Smon Offline
Member
Smon  Offline
Member

Joined: Dec 2014
Posts: 206
Germany
Ok, it is possible. I solved my problem by adding

if(Asset == "NAS100") return(".USTECHCash");
if(Asset == "SPX500") return(".US500Cash");
if(Asset == "US30") return(".US30Cash");
if(Asset == "GER30") return(".DE30Cash");
if(Asset == "UK100") return(".UK100Cash");

at line 68 in the MQL4 file right under "string assetFix(string Asset)

Re: Issue with MT4 - AssetFix file [Re: Smon] #461836
08/24/16 09:20
08/24/16 09:20
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ok, but this does not explain why the symbol in the asset list is "NAS100" and not ".USTECHCash" as it should be. Check your z.ini file - maybe you're using a different asset list?

Re: Issue with MT4 - AssetFix file [Re: jcl] #461842
08/24/16 11:24
08/24/16 11:24
Joined: Dec 2014
Posts: 206
Germany
Smon Offline
Member
Smon  Offline
Member

Joined: Dec 2014
Posts: 206
Germany
It's a clean and recent install of Zorro. This is the z.ini:

NFA = 0
FXOnly = 0
MMax = 100
Phantom = 1
Hedge = 5
Weekend = 2
Verbose = 2
BrokerPatch = 0
Preload = 0
AssetList = "AssetsFix";
Cancel = 0

Re: Issue with MT4 - AssetFix file [Re: Smon] #461847
08/24/16 17:08
08/24/16 17:08
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Can you then run the following small script? Just for making sure.

function run()
{
assetList("AssetsFix");
asset("GER30");
printf("\n%s => %s",Asset,Symbol);
asset("NAS100");
printf("\n%s => %s",Asset,Symbol);
asset("SPX500");
printf("\n%s => %s",Asset,Symbol);
quit();
}

Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1