NR Inside bar script Tradingview
//@version=4
study(“NR Inside”, overlay=true)
fourth= high – low
third= high[1] – low[1]
second= high[2] – low[2]
first= high[3] – low[3]
high1= high<high[1]
low1=low>low[1]
inside=high1 and low1
nr= fourth< third and fourth<second and fourth<first and inside
plotshape(nr, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.tiny)