MQL4 Reference 
 Predefined Variables 
  _Period
int _PeriodThe _Period variable contains the value of the timeframe of the current chart. Also you may use the Period() function. See also PeriodSeconds(), Chart timeframes, Date and Time, Visibility of objects  |