MQL4参考 预定义变量 _Period
The _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