I’m trying to have a look at weekly rotational system and trying to work out the correct coding for ranking criteria. some coding i’m still struggling with.
For Monthly rotational – the template shows the following:
score = Ref(Rank,-1);//score is the rotational criteria
For weekly – the template – shows the following:
score = ;//score is the rotational criteria
So for a weekly system do you just put “rank” in there so it would be:
score = rank; or should it be the same as monthly and be score = ref(rank),-1.
Not surprisingly i get completely different results depending on what i use. One is good the other is loss over 20 years of backtesting. But I’m not really grasping what the code is doing making the tests completely different.
Hoping someone can explain it to me as I’m not getting it.