MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Date & Time functions  DayOfYear

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
int DayOfYear( )
Returns the current day of the year (1 means 1 January,..,365(6) does 31 December), i.e., the day of year of the last known server time.
Note: At the testing, the last known server time is modelled.
Sample:
  if(DayOfYear()==245)
    return(true);