PineCoders Squawk Box
الذهاب إلى القناة على Telegram
News & Tips on TradingView's Pine programming language
إظهار المزيد3 493
المشتركون
لا توجد بيانات24 ساعات
+157 أيام
+4730 أيام
أرشيف المشاركات
🌲 #newfeature
A new
for ... in structure now allows you to loop across the elements of an array. See the Reference Manual for more information.🌲 #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)🔈 #news
With the advent of Pine Libraries, we renamed the "Public Library" to "Community Scripts" to avoid confusion.
🌲 #newfeature
Tooltips in the "Settings/Properties" tab of strategies now provide details on the values.
🌲 #newfeature
You can now use ALT+SHIFT+🠄 and ALT+SHIFT+🠆 to move to the first or last bar in history.
🌲 #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/
🔈 #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.
🔈 #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
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
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!
🌲 #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
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
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
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
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
You can now use
nz() to protect against division by zero. This will return zero when close == open: nz(1 / (close - open))🌲 #newfeature
Script authors can now filter their user profile's SCRIPTS page on private/public publications.
🌲 #newfeature
The new
round_to_mintick() function makes it possible to round numeric values to tick precision.
https://www.tradingview.com/pine-script-reference/v4/#fun_round_to_mintick