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?