3rd day breakout
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © aforanand22

//@version=4
study(title = "3rd day breakout", overlay = true)
Inside_Bar = high <= high[1] and low >= low[1]

plotshape(Inside_Bar, style=shape.arrowdown, location=location.abovebar, color= color.yellow)

Inside_Bar_Bullish =  high[1] <= high[2] and low[1] >= low[2] and close >= high[2]

plotshape(Inside_Bar_Bullish, style=shape.arrowup, location=location.belowbar,color=  color.green)

Inside_Bar_Bearish =  high[1] <= high[2] and low[1] >= low[2] and close <= low[2]

plotshape(Inside_Bar_Bearish, style=shape.arrowdown, location=location.abovebar, color= color.red)