Here you go. All of the typical user inputs are included to allow users to adjust the settings without modifying the structure of the code:
input rsiLength = 14;
input rsiPrice = close;
input rsiValue = 50.0;
input smoothingType = {default Wilders, EMA};
input maLengthOne = 8;
input maTypeOne = AverageType.EXPONENTIAL;
input maPriceOne = close;
plot reverseRSI = ReverseEngineeringRSI(rsiLength, rsiPrice, rsiValue, smoothingType).RevEngRSI;
plot maOne = MovingAverage(maTypeOne, maPriceOne, maLengthOne);
AddLabel(yes, if maOne > reverseRSI then "Buy" else if maOne < reverseRSI then "Sell" else "None", if maOne > reverseRSI then Color.GREEN else if maOne < reverseRSI then Color.RED else Color.WHITE);