I have adjusted the title of your question to reflect what I believe you have requested. Not sure I got it right. But it seems you want a scan that finds stocks that have opened at specified percent above a 60 period simple moving average.
This code has not been tested because you did not provide an example stock exhibiting this condition you have described.
input percentFromAverage = 0.9;
input comparisonPrice = open;
input maLengthOne = 60;
input maTypeOne = AverageType.SIMPLE;
input maPriceOne = close;
def maOne = MovingAverage(maTypeOne, maPriceOne, maLengthOne);
plot scan = comparisonPrice > maOne * (1 + percentFromAverage * 0.01);