Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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,730
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1