Programmatically add to tester marketwatch and string array symbols of specific sector

 

I am trying with this part of code to add to a string array and to testers marrketwatch forex and crypto.

I do not understand what i am doing wrong.. litle help?

string symbolss[]=
  {


  };

int OnInit()
  {

   int total=SymbolsTotal(false);
   Print(total);
   for(int i=total-1; i>=0; i--)
     {
      string symbol_name=SymbolName(i,false);


      ENUM_SYMBOL_SECTOR sector= (ENUM_SYMBOL_SECTOR)SymbolInfoInteger(symbol_name,SYMBOL_SECTOR);
      Print(symbol_name," ",EnumToString(sector));

      if(EnumToString(sector)==EnumToString(SECTOR_CURRENCY) || EnumToString(sector)==EnumToString(SECTOR_CURRENCY_CRYPTO))
        {
         int size=ArraySize(symbolss);
         ArrayResize(symbolss,size+1);
         symbolss[size]=symbol_name;
         Print(ArraySize(symbolss)," ",symbol_name);
         SymbolName(i,true);

        }

     }

   return(INIT_SUCCEEDED);
  }