PineCoders Squawk Box
Open in Telegram
News & Tips on TradingView's Pine programming language
Show more3 493
Subscribers
No data24 hours
+157 days
+4730 days
Posts Archive
π² #newfeature
tostring() now accepts three new formatting arguments:
format.mintick to format to tick precision.
format.volume to abbreviate large values.
format.percent to format percentages.
https://www.tradingview.com/pine-script-reference/v4/#fun_tostringπ² #newfeature
The "Publish Script" window was redesigned to make our options clearer.
π² #newfeature
Script authors can now filter their user profile's SCRIPTS page on the access type of their scripts.
π² #newfeature
color.new() now accepts arguments of "series" form for its color and transp parameters:
https://www.tradingview.com/pine-script-reference/v4/#fun_color{dot}newπ² #newfeature
When updating a published script, you can now choose to keep your previously published chart as is, only updating the scriptβs code.
π² #newfeature
You can now draw boxes in Pine:
https://www.tradingview.com/blog/en/new-drawing-box-24667/
π² #newfeature
You can now use tables to place content like display panels that won't move on charts!
https://www.tradingview.com/blog/en/introducing-pine-tables-24604/
π² #newfeature
You can now initialize arrays with a list of values using the new
array.from():
//@version=4
study("")
int[] v = array.from(1, 2, 12)
plot(array.avg(v))
https://www.tradingview.com/pine-script-reference/v4/#fun_array{dot}fromπ² #newfeature
Big news for coders interested in producing better script visuals! We can now generate colors on the fly, and use "series color" in more functions:
https://www.tradingview.com/blog/en/new-opportunities-to-work-with-color-in-pine-24226/
πͺ #tip
Reminder
This is the complete list of functions that support a "series int", so a dynamic value, as the argument to their
length parameter:
https://www.pinecoders.com/faq_and_code/#can-i-use-a-variable-length-in-functionsπ #fix
The problem that caused some scripts using fills to misbehave has been fixed.
π #fix
The problem that caused some scripts to stop working since Friday has been fixed.
π² #newfeature
To help you keep up with the crazy pace of improvements by the Pine team, catch up on new Pine features with this wrap-up of a few recent additions:
https://www.tradingview.com/blog/en/what-s-new-in-pine-23841/
π² #newfeature
Pine scripts now have access to dividends, earnings and splits.
https://www.tradingview.com/blog/en/functions-to-get-splits-dividends-earnings-data-in-pine-23591/
π #news
Our new script publication explains how to use the new
varip variables:
https://www.tradingview.com/script/ppQxBISk-Using-varip-variables-PineCoders/π² #newfeature
New assignment operators were added:
+= addition assignment
-= subtraction assignment
*= multiplication assignment
/= division assignment
%= modulus assignment
Instead of a := a + 1 you can now write a += 1π² #newfeature
Use tooltips in your inputs!
https://www.tradingview.com/blog/en/add-tooltips-to-inputs-of-pine-scripts-23475/
π² #newfeature
You can now create section headers in inputs, and join multiple inputs on one line.
https://www.tradingview.com/blog/en/organize-script-inputs-in-sections-and-lines-23321/
π² #newfeature
A new
resolution_gaps parameter for the study() declaration statement allows you to control gaps when using the resolution parameter to access higher timeframes.
https://www.tradingview.com/pine-script-reference/v4/#fun_studyπ² #newfeature
A new
tonumber() function allows the conversion of a string to a float value.
https://www.tradingview.com/pine-script-reference/v4/#fun_tonumber