3 Bank  Index
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Omran04

//@version=4
study("3 Bank  Index")

rsi_period = input(title="RSI Period", defval=14, minval=2, maxval=500)
pct_change(val_series) => ((val_series - val_series[1]) / val_series[1]) * 100





AXISBANK_close = security(symbol="NSE:AXISBANK", resolution=timeframe.period, expression=close) 
SBIN_close = security(symbol="NSE:SBIN", resolution=timeframe.period, expression=close) 
KOTAKBANK_close = security(symbol="NSE:KOTAKBANK", resolution=timeframe.period, expression=close) 

AXISBANK_rsi = rsi(AXISBANK_close, rsi_period) 
SBIN_rsi = rsi(SBIN_close, rsi_period) 
KOTAKBANK_rsi = rsi(KOTAKBANK_close, rsi_period) 


plot((AXISBANK_rsi + SBIN_rsi + KOTAKBANK_rsi) / 3) 


plot(50, color=color.gray)
plot(70, color=color.red)
plot(70, color=color.blue)

