Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 767 guests, and 8 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
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,729
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1