Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 827 guests, and 6 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
Values in global array are changed by while(asset(loop(Assets)) #476374
02/21/19 13:57
02/21/19 13:57
Joined: Oct 2018
Posts: 79
S
SnoopySniff Offline OP
Junior Member
SnoopySniff  Offline OP
Junior Member
S

Joined: Oct 2018
Posts: 79
I have a global array:

MyCurrency[50];

I have a loop for the Assets in the run function:

while(asset(loop(Assets))) { ... }

The MyCurrency[i] has values like: "USD", "EUR", "JPY"...

When the loop is running for the 2nd time, so for the 2nd bar, the content of the elemets from MyCurrency[i] has changed to values like "AUD/USD:L", "AUD/USD:S".

I can't explain myself why. When I quote the while(asset(loop(Assets))) { ... } for deactivation and run it just for the selected Asset the values stay as they are and supposed to be ("USD", "EUR", "JPY"...).

I don't know why that is. I am clueless. Any idea?

Re: Values in global array are changed by while(asset(loop(Assets)) [Re: SnoopySniff] #476378
02/21/19 17:15
02/21/19 17:15
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
I can only guess without seeing your full script.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1