Om RSI 
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © OmPSoni1987

//@version=4
study("Om ORB RSI", overlay = false)

// timeframes 5,1hr, 1 day
tf1 = input('5', type=input.resolution)
tf2 = input('60', type=input.resolution)
tf3 = input('375', type=input.resolution)

//RSI

RSI = rsi(close, 14)
//
s0 = security(syminfo.tickerid, timeframe.period, RSI)
s1 = security(syminfo.tickerid, tf1, RSI)
s2 = security(syminfo.tickerid, tf2, RSI)
s3 = security(syminfo.tickerid, tf3, RSI)

WMA = wma (RSI,21)
PEMA = ema (RSI,3)

plot (RSI, "RSI 14", color= color.white)
plot (WMA, "21 WMA RSI", color= color.red)
plot (PEMA, "3 EMA RSI", color= color.green)
plot (50)
plot(s1,title= "5 Min", color=color.gray, linewidth=2)
plot(s2,title= "1 Hour", color=color.yellow, linewidth=2)
plot(s3,title= "1 Day", color=color.blue, linewidth=2)