OPEN-SOURCE SCRIPT

3IC

27
//version=5
indicator("3IC", overlay=true)

// 3 Inside Candle logic
inside_2 = high[1] < high[2] and low[1] > low[2]
inside_3 = high < high[1] and low > low[1]

three_inside = inside_2 and inside_3

plotshape(three_inside, title="3 Inside Candles", style=shape.triangleup, location=location.belowbar, color=color.yellow, size=size.small)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.