OPEN-SOURCE SCRIPT

Pin Bar Highlighter

77
//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)

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.