OPEN-SOURCE SCRIPT

Pip Badan Candle Terakhir

96
//version=5
indicator("Pip Badan Candle Terakhir", overlay=true)

badan = math.abs(close - open)
pip = badan * 100
textPip = str.tostring(pip, "#.0") + " pip"

var label lbl = na
if not na(lbl)
label.delete(lbl)

lbl := label.new(bar_index, (high + low) / 2, textPip,
style=label.style_label_up,
textcolor=color.white,
size=size.normal,
color=close > open ? color.green : color.red)

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.