Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,161 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,806
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1