NRAA v2.00 
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © neerajupadhyaya

//@version=5
indicator("NRAA v2.00 ",overlay = true)
r=ta.rsi(close, 14)
ps=ta.sar(0.02,0.02,0.2)
E=ta.ema(close,13)
e=ta.ema(close,5)
v=ta.vwma(close, 20)
BasicUpperBand = hl2 - 2 * ta.atr(10)
BasicLowerBand = hl2 + 2 * ta.atr(10)
FinalUpperBand = 0.0
FinalLowerBand = 0.0
FinalUpperBand := close[1] > FinalUpperBand[1] ? math.max(BasicUpperBand, FinalUpperBand[1]) : BasicUpperBand
FinalLowerBand := close[1] < FinalLowerBand[1] ? math.min(BasicLowerBand, FinalLowerBand[1]) : BasicLowerBand
nu= close <ps and e<E and e[2]>E[2] and close< FinalUpperBand[1]
nu1 = close>v //and close > e //and close[1]> FinalLowerBand[1] //and close>ps //
un1 = close<v //and close < e  //and close[1]<FinalUpperBand[1] //and close<ps//
NU = high>high[1] and r>r[1] and high[1]>high[2] and r[1]>r[2] 
UN = low<low[1] and r<r[1] and low[1]<low[2] and r[1]<r[2] 
plotshape(NU, title="Buy Signal", style=shape.circle , location=location.belowbar, color=color.green, size=size.tiny)
plotshape(nu, title="Sell Signal", style=shape.circle , location=location.abovebar, color=color.rgb(250, 137, 9, 20), size=size.tiny)
plotshape(UN, title="Buy Signal", style=shape.circle , location=location.abovebar, color=color.rgb(247, 11, 70), size=size.tiny)
plotshape(nu1 , style = shape.circle , location = location.top , color = #3bf023 , size = size.tiny)
plotshape(un1 , style = shape.circle , location = location.top, color = #f05323 , size = size.tiny)
