Works fine in the screener. No ranking. Returns annualized 28% with all the Tech stocks (about 80) of the universe during Uptrend, and switches to gold streamer RGLD for Downtrend periods, all as defined by the slope of the 6-mo moving average of my monthly CAPE-MA35 series.
I got it working by using a custom formula for the full LinReg() in the hedge module. Strange that the hedge module did not like the LinReg() in its rules.
It is a monthly period series because the Shiller CAPE is monthly. I have no idea why the hedge module does not like the complete LinReg(), but it is happy when I give it the LinReg() via a formula.