PineCoders Squawk Box
3.84K subscribers
60 photos
166 links
News & Tips on TradingView's Pine programming language
Download Telegram
🐞#bug
The textalign= parameter defaults to center, regardless of the argument you use, when you create a label. Until the problem is fixed, there is a workaround:

//@version=4
study("")
if bar_index % 5 == 0
// Alignment doesn't work here.
_b = label.new(bar_index, high, "T\nTTTTT", textalign = text.align_right)
// Works here.
label.set_textalign(_b, text.align_right)
👍1
🐞#bug
A recent problem has surfaced since Friday. It affects how script Inputs are handled. Checkboxes, dropdowns, and other Inputs sometimes do not behave as expected. A fix should come early in the week. Apologies for the inconvenience.