MQL4 Reference Chart Operations Period
Returns timeframe of the current chart.
int Period();
Parameters
None.
Returned value
Period (timeframe) of the current chart (in minutes).
Example:
Print("Period ", Period());