English

DaysOfMonth() question

 111 fulltilt 2013.10.28 09:57 #   Thirteen: Try: `if (Month() == 1 && Day() >= 30) return (0);` it works ... I thought day() returns 0-7 only - sorry my mistake ;-) ```        if (!TradeMonthEnd && Month() == 1 && Day() >= 30) return(0);         if (!TradeMonthEnd && Month() == 2 && Day() >= 27) return(0);         if (!TradeMonthEnd && Month() == 3 && Day() >= 30) return(0);         if (!TradeMonthEnd && Month() == 4 && Day() >= 29) return(0);         if (!TradeMonthEnd && Month() == 5 && Day() >= 30) return(0);         if (!TradeMonthEnd && Month() == 6 && Day() >= 29) return(0);         if (!TradeMonthEnd && Month() == 7 && Day() >= 30) return(0);         if (!TradeMonthEnd && Month() == 8 && Day() >= 30) return(0);         if (!TradeMonthEnd && Month() == 9 && Day() >= 29) return(0);         if (!TradeMonthEnd && Month() == 10 && Day() >= 30) return(0);         if (!TradeMonthEnd && Month() == 11 && Day() >= 29) return(0);         if (!TradeMonthEnd && Month() == 12 && Day() >= 30) return(0);```