What is wrong?

 
string cciOnRsi_ (int nPeriod, string cPair)
{
  double rsi[];
  double cci[];

  ArrayResize(rsi, Bars);
  ArraySetAsSeries(rsi,true);
  for(int i=Bars; i>=0; i--)
  {
  rsi[i]=iRSI(cPair,nTimeFrame1,Period_EA,PRICE_CLOSE,i);
  }
  double cci[i] = iCCIOnArray(rsi,0,Period_EA,0);
  return(cci);

 
What does iRSI return in MQL4 and what does iRSI return in MQL5?
 
Use the </> code insert tool for posting your code please.