Telegram Web Link
🌲 #newfeature
BTC is now a currency!
You can now use BTC as a currency in strategy parameters.
πŸ”ˆ #news
"Maximum order quantity exceeded 3000" error
The error is caused by a problem introduced in a recent update. ETA on the fix is one week.
πŸžβš”οΈ #bugfix
Alerts configured on code using `barstate.isconfirmed` now work as expected.
Alerts based on this code would never fire before. They now do.

//@version=4
study("")
alertcondition(barstate.isconfirmed, "Alert")
🌲 #newfeature
security() can now return tuples.

//@version=4
study("", "", true)
f_hiLo() => [high, low]
[hi, lo] = security(syminfo.tickerid, "D", f_hiLo())
plot(hi, color=#FF0000ff)
plot(lo, color=#00FF00ff)
πŸ”ˆ #news
PineCoders Coding Conventions
We updated the Variable Names section of our Coding Conventions with a few additions. We also link, at the end, to a few scripts showing the Conventions in use.
πŸžβš”οΈ #bugfix
display = display.none
A change was made to its behavior, to bring it in line with the original specs for the feature, which specified no display of the plot or its values anywhere, as it was meant to be used for plots intended for external signals and placeholders in alert messages.

Phase 1 of the new display= parameter for plot functions is now complete. Phase 2 has no ETA yet, but will include other arguments for the display= parameter:
display.chart
display.data_window
display.price_scale
display.indicator_value

When Phase 2 is deployed, you will be able to combine these to control exactly where a plot's values are to appear.
🌲 #newfeature
Changes to security()'s resolution= parameter.

The security() function was recently updated to accommodate an empty string or na as an argument to its resolution= parameter. In both cases, the chart's resolution (timeframe.period) will be used.

This will be handy in conjunction with the new "Same as Symbol" choice which is now part of the recent resolution widget's dropdown, which appears in the script's Inputs when you use:
r = input("D", type = input.resolution)


When users select "Same as Symbol" in the dropdown, the widget returns an empty string. As we had documented here, coders previously had to use special logic to process an empty string, as security() would throw an error if an empty string was used for the resolution. Now, we can forego the special logic and simply write:
r = input("D", type = input.resolution)
c = security(syminfo.tickerid, r, close)


Note that the default value we supply in the input() call must be one of the dropdown's choices (or an empty string for "Same as Symbol), otherwise "Same as Symbol" will be used in its place.
πŸžβš”οΈ #bugfix
Plotting na when using histogram, area or columns mode no longer puts zero in play in the indicator's scale

Prior to this fix, using either of:
style = plot.style_histogram
style = plot.style_area
style = plot.style_columns

with plot() would always put the zero value in the indicator's scale, even when plotting na. This is no longer the case.
πŸ“ˆ #newfeature
Plots disabled in Settings/Style no longer appear in the Data Window

Continuing to show plots in the Data Window when users disabled them from the Settings/Style db confused users, so unchecking them in the Settings/Style db now also hides them in the Data Window. See in these screenshots how Plot 4 plot does not appear in the Data Window, nor in the Indicator's Values.

NOTE: This recent change has also introduced behavior which will cause user-selected transparency levels from the Settings/Style db to be reflected in the value rendered in the Data Window, whereas before, the value was always rendered with transparency zero. The transparency of Plot 1 was changed to 50% in the Settings/Style db here. We will try to have this side effect corrected.
πŸ”ˆ #news
The recent problem where existing scripts are throwing the:
Pine cannot determine the referencing length of a series. Try using max_bars_back in the study or strategy function.

error can usually be fixed by using max_bars_back=300 in your study() or strategy() declaration statement.
πŸ”ˆ #news
PineCoders is now on Twitter.
https://twitter.com/PineCoders
🌲 #newfeature
A new resolution= parameter to study() provides coders with a simple way to give their script MTF functionality without using security().

See how the "Moving Average" built-in from the Editor's "New" menu uses it. Make sure you are comfortable with the feature before publishing scripts using it. The HTF values returned contain gaps.
πŸ”ˆ #news
midtownsk8rguy has updated his color chart. Labels make it easier to identify colors. This is a good and pretty complete selection of colors that work well:

https://www.tradingview.com/script/yyDYIrRQ-Pine-Color-Magic-and-Chart-Theme-Simulator/
🌲 #newfeature
else if
The else if structure is now allowed!

//@version=4
study("")
a = 0
if close > open
a := 3
else if close < open
a := 2
else
a := 1
plot(a)
🌲 #newfeature
Premium accounts can now control the expiry date on access to their invite-only script publications. See the blog post.
πŸ’ͺ #tip
Ever wonder how the Strategy Tester values are calculated? This doc explains it all.
πŸ”ˆ #news
alexgrover has added Ema() and Atr() functions accepting series lengths to his brilliant Functions Allowing Series As Length script published from the PineCoders account.
2025/07/04 08:58:01
Back to Top
HTML Embed Code: