MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Date & Time functions  Month

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
int Month( )
Returns the current month as number (1-January,2,3,4,5,6,7,8,9,10,11,12), i.e., the number of month of the last known server time.
Note: At the testing, the last known server time is modelled.
Sample:
  if(Month()<=5)
    return("the first half year");