No, the if clause conditions are both for Live (whenever executed) or Test mode (every two months).

I'm now closing all positions instead of changing them. For me it's working now..

if((Live && !is(LOOKBACK))
|| (Test && tdm(0) == 3 && month(0)%2)) //2 months vs 1 month cycle has better performance due to lower costs
{
//The 10 largest positive elements of the Values array are taken
distribute(Weights,Momentum,NumAssetsListed,20,0.1);

//rotate(0); // exit old positions -> doesn't work, because MT4 doesnt support NFA

//Instead just close all open positions
for(used_assets) {
asset(Asset); // select the current component
exitLong(0,0);
}

rotate(1); // enter new positions
}