Blog

tradingview
AXIS BANK BANK NIFTY COMMODITY CRUDE OIL Pine Script STOCKS TradingView

TradingView – New Label Styles in Pine Script

TradingView – New label styles now allow you to position the label pointer in any direction when creating labels in Pine:

//@version=4
//@Algonize
study("Labels", overlay = true)
var label1 = label.new(bar_index, high, text = "Lower Right", 
 style = label.style_label_lower_right, color = color.orange, size = size.large)
var label2 = label.new(bar_index, low, text = "Left", 
 style = label.style_label_left, color = color.green,size = size.large)
label.set_xy(label1, bar_index[1], high[1])
label.set_xy(label2, bar_index, low)

You can learn more about if and else if expressions in our Piine Script Tutorial and Pine Script Reference pages. We hope you find this update useful. As always, feel free to send in your comments, feedback, and suggestions — we love building for you.

Source : TradingView

Youtube : Click Here

Facebook : Click Here

See Also

Pricing & Plans : https://algonize.com/pricing-and-plans/

BankNifty : Click Here

CrudeOil : Click Here

Leave a Reply

Your email address will not be published. Required fields are marked *