about client synchronized with server

 
when we open the MT5 client, there are prompt word:"waiting to update" , I want let my robot running after  synchronized with server,

can I use this code? 

void OnTimer()
  {

   if(SymbolIsSynchronized(_Symbol))
      CuteRobot.Processing();
  }

 
Documentation on MQL5: Timeseries and Indicators Access / Organizing Data Access
  • www.mql5.com
Timeseries and Indicators Access / Organizing Data Access - Documentation on MQL5
Reason: