from mql4 to mql5

 

How to write this mql4 code to mql5:

string TestCCIonRSI( int nPeriod, string cPair)

{      

   int sizeOfaNizDan = nPeriod;   

   

   double aNizDan[];  

   int i;

   double nResult;

 

 

   int nRow = 2;

   int nCol = 3;

   

   ArrayResize(aNizDan,sizeOfaNizDan);

   ArraySetAsSeries(aNizDan,true);   

   

   for(i = 0; i <   sizeOfaNizDan ; i++)

   {       

       aNizDan[i] = iRSI( cPair,nTimeFrame1,Period_EA,PRICE_CLOSE,i);    

   }

   nResult = iCCIOnArray( aNizDan,0,Period_EA,0);

   

   if( nResult < lowLevel ) return("SELL");

   if( nResult > upLevel ) return("BUY");

   return("");



}



 
Use the </> code insert tool when posting code please.