MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Date & Time functions  TimeLocal

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
datetime TimeLocal( )
Returns local computer time as number of seconds elapsed from 00:00 January 1, 1970.
Note: At the testing, local time is modelled and is the same as the modelled last known server time.
Sample:
  if(TimeLocal()-OrderOpenTime()<360) return(0);