OPEN-SOURCE SCRIPT

Pin Bar Highlighter

64
//version=5
indicator("Pin Bar Highlighter", overlay=true)

body = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low

bullPin = (lowerWick >= body * 2) and (close > open)
bearPin = (upperWick >= body * 2) and (close < open)

bullColor = color.rgb(10, 20, 80)
bearColor = color.rgb(255, 20, 150)

barcolor(bullPin ? bullColor : bearPin ? bearColor : na)

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.