Script Variable Normalisation


I have created a custom ranking code using:

(RSI() + ROC() + OBVP() + WR())/3

and trying to backtest this using the ranking function. The problem I’m having at the moment is trying to normalise the variables so they are equally weighted.

Is there a way to convert these individual components to % (e.g. I would need a way to calculate the sum the ROC() of all stocks in one universe) or any other ways to normalise these data components.