Maybe use the following declarations
PHP Code:
string names[] = { "USD", "EUR", "JPY", "GBP", "CHF" };
double array[5];
void setArray(int index)
{
array[0] = USD[ index ];
array[1] = EUR[ index ];
array[2] = JPY[ index ];
array[3] = GBP[ index ];
array[4] = CHF[ index ];
}
Then call setArray before the comment...
PHP Code:
setArray( 12 );
Comment( "Min: " + names[ ArrayMinimum( array ) ] + ": " + ArrayMinimum( array ) ...