isn't the closing condition only in test mode?

"if((Live && !is(LOOKBACK)) || (Test && tdm(0) == 1 && month(0)%2)) // first trading day of every second month"