String Concatenate problems?

 

Hello


Im having a little trouble with the string concatenate function, my code so far is as follows -



string open_pair;

string pairs_names[2] = {"EUR", "GBP"};


open_pair=StringConcatenate("\"", pairs_names[0], pairs_names[1], "\"");

Alert(open_pair);

double final_check_ma1 = iMA(open_pair,PERIOD_H1,15,0,MODE_SMA,PRICE_CLOSE,0);

double final_check_ma2 = iMA(open_pair,PERIOD_H1,35,0,MODE_SMA,PRICE_CLOSE,0);

      

if (final_check_ma1 < final_check_ma2)

   {

   Alert("down");

   }

if (final_check_ma1 > final_check_ma2)

   {

   Alert("up");

   }



Can any one give any hints why it might not be working?




thanks

 
fatcheese:

Hello

Can any one give any hints why it might not be working?

open_pair=StringConcatenate(pairs_names[0], pairs_names[1]);

or
open_pair=pairs_names[0] + pairs_names[1] ;
 
ronaldosim:

Sorry, 


I discovered its the iCustom part that is not working properly