how can I convert this code from MT4 to MT5?

 
This two code is writen in MT4 expert, how to convert? thanks!


   if((iBarShift(NULL,0,time2)-iBarShift(NULL,0,Time[0]))<=2) continue;
 
 
 

   if(ObjectGetValueByShift(objName,BarId)>0 

 
codeidea :
This two code is writen in MT4 expert, how to convert? thanks!


   if((iBarShift(NULL,0,time2)-iBarShift(NULL,0,Time[0]))<=2) continue;
 
 
 

   if(ObjectGetValueByShift(objName,BarId)>0 

 


Check out the MQL4 to MQL5 conversion work by circlesquares and fai here https://www.mql5.com/en/forum/121011/page18
Beta Testing of MetaTrader 5 Has Started! - MQL4 forum
  • www.mql5.com
Beta Testing of MetaTrader 5 Has Started! - MQL4 forum
Reason: