PineCoders Squawk Box
3.84K subscribers
60 photos
166 links
News & Tips on TradingView's Pine programming language
Download Telegram
🌲 #newfeature
You can now export data from both the "Performance Summary" and the "List of Trades" tabs of the "Strategy Tester" panel.
🌲 #newfeature
A new time_tradingday variable for time returns the actual trading day the bar belongs to, which may differ from that returned by time on certain markets like forex.
https://www.tradingview.com/pine-script-reference/v4/#var_time_tradingday
🌲 #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
🌲 #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
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
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
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/
πŸ›  #fix
The problem that caused some scripts to stop working since Friday has been fixed.
πŸ›  #fix
The problem that caused some scripts using fills to misbehave has been fixed.
πŸ’ͺ #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
🌲 #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/
🌲 #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
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/
❀1
🌲 #newfeature
When updating a published script, you can now choose to keep your previously published chart as is, only updating the script’s code.
πŸ‘1
🌲 #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
πŸ‘1