Telegram Web Link
🌲 #newfeature
A new barstate.islastconfirmedhistory built-in allows you to detect the last bar in history. This can be useful to restrict calculations to the point just before the script begins execution on an open market.
https://www.tradingview.com/pine-script-reference/v4/#var_barstate{dot}islastconfirmedhistory
🌲 #newfeature
When drawing lines, labels or boxes and using xloc.bar_index to position them, you can now use offsets of up to 500 bars into the future, e.g.: label.new(bar_index + 10, high, "Text")
🌲 #newfeature
Values changed in the "Settings/Inputs" and "Settings/Properties" tabs are now preserved as you save new versions of a script already loaded on a chart.
🌲 #newfeature
You can now use explicit_plot_zorder = true with study()/strategy() so that the order of plot, fills and hlines in your code determines their z-order, i.e., which ones appear on top of others. Other drawings are not affected.
🌲 #newfeature
Horizontal lines and boxes starting on early bars in history are now displayed on the chart, even if their starting point is not visible on the chart's bars:

//@version=4
study("", "", true)
var firstBarTime = time
if barstate.islastconfirmedhistory
line.new(firstBarTime, close, time, close, xloc=xloc.bar_time)
🌲 #newfeature
Strategy results now show the Sortino ratio.
πŸ”ˆ #news
If you are wondering why the Pine team has been quiet lately, it's because they and other TV teams are hard at work on Pine v5, which is coming soon. Fasten your seatbelts!
Channel photo updated
πŸ”ˆ #news
A PineCoders team will publish indicators in Pine in the monthly Traders' Tips section of the Technical Analysis of Stocks & Commodities (TASC) magazine.
The indicators will be published from the PineCodersTASC account on TV.
See the current month's publications here:
https://www.tradingview.com/u/PineCodersTASC/#published-scripts
πŸ”ˆ #news
Pine v5 is here!
It brings Pine libraries, switch structures, while loops and much more! You can learn more about new v5 features in the Release Notes of our User Manual. Our Migration Guide will help you with the transition. Enjoy!
πŸ”ˆ #news
Script authors who publish their scripts and get user questions on repainting can now link them to our new User Manual page on Repainting. It goes into more detail than the previous one, and contains a section dedicated to script users.
🌲 #newfeature
array.sort() now sorts string[] arrays.
🌲 #newfeature
Interactive inputs for price and time
Have a look at how this script uses a new interactive mode where script users can select time inputs from the chart. We explain in the publication's description how it works. Try it out and experiment with your own code. If you have suggestions for improvement, please leave us comments on the publication's page.
https://www.tradingview.com/script/SkmMrMe0-CAGR-Custom-Range/
🌲 #newfeature
You can now use ALT+SHIFT+πŸ „ and ALT+SHIFT+πŸ † to move to the first or last bar in history.
🌲 #newfeature
Tooltips in the "Settings/Properties" tab of strategies now provide details on the values.
πŸ”ˆ #news
With the advent of Pine Libraries, we renamed the "Public Library" to "Community Scripts" to avoid confusion.
🌲 #newfeature
The type-matching requirement for the return value of if and switch local blocks has been removed when the structure's return value is not assigned to a variable. This will now work in v5:

 //@version=5
indicator("", "", true)
var line myLine = na
if close > open
line.delete(myLine)
else
myLine := line.new(bar_index - 10, high[10], bar_index, high)
🌲 #newfeature
A new for ... in structure now allows you to loop across the elements of an array. See the Reference Manual for more information.
πŸ”ˆ #news
The time limit for the execution of any single loop has been extended from 200 to 500ms. More processing power to you, Pine coders!
2025/07/01 11:08:13
Back to Top
HTML Embed Code: