MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Window functions  Period

 
int Period( )
Returns the amount of minutes determining the used period (chart timeframe).
Sample:
  Print("Period is ", Period());