ETF Rotation Strategy

I have written a rotation strategy in Amibroker and would like to translate it to seetu. I know that PositionScore is not available in seetu so would it be possible for someone to provide some sample code on how this functionality can be implemented in seetu?


More specifically, say, I have two instruments and would like to rank them by 6 month rate of change and always switch to the one that has highest positive rate of change. If both are negative then stay cash. This is really easy to do in amibroker but how do you do it in seetu?

BTW, here is the rotation code I’ve written for Amibroker which may help to explain what I’m trying to achieve:
SetBacktestMode( backtestRotational );
SetTradeDelays( 0, 0, 0, 0 );
SetOption( “MaxOpenshort”, 0 );
SetPositionSize( 100, spsPercentOfEquity );
PositionScore =1000+ ROC( Close, 12 ) ; // make sure it is positive by adding big constant

This is probably not possible currently (without PositionScore).