Hi,
simple code for this powerful trend indicator, the RSIOMA.
It basically takes two moving averages, calculates their RSI, and then also add a moving average of the calculated RSI.
////////////////////////////////////////////////
///////////////////RSIOMA/////////////////////
/////////////////////////////////////////////////
n=14 (periodo dell'RSI e della EMA)
m=21 (periodo della media)
//BuyTrigger =80
//SellTrigger =20
//MajorTrend =50
ma=exponentialaverage[n](close)
rsioma=rsi[n](ma)
marsioma=exponentialaverage[m](rsioma)
return rsioma as "RSI", marsioma as "MA"
///////////////// FINE ///////////////////////////////////////////////