MQL4 Reference Predefined Variables _Period

int _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