If you want to have possibility of using different array other than Close
then you have to use RSIa
() function
src=(Close);
length = Param("RSI Length",14,1,100,1);
SSF=Param( "SF RSI SMoothing Factor",5,1,50,1);
RSII=EMA(RSIa(src,length),SSF);
As written in manual here
https://www.amibroker.com/guide/afl/rsi.html
Second version RSIa accepts input array so it RSI can be applied to other arrays than close.
BTW, please use code tags when inserting codes to your post.
It is mandatory rule.