How to implement this strategy in streak

I want to get the stocks whose relative strength with respect to nifty went from negative to positive which is the stock went from underperforming the nifty to outperforming the nifty this is a formula of rs RS = [(stockSymbolClose/ stockSymbolClose5periodbefore ) / (niftyClose/ NiftyClose5periodbefore )] - 1. @Streak . If using the above formula i want so that the rs crossed above 0 for a signal.

1 Like

How to write in this formula in streak,i don’t use earlier in streak,please easily written to me in this formula…