PineCoders Squawk Box
3.85K subscribers
60 photos
166 links
News & Tips on TradingView's Pine programming language
Download Telegram
๐ŸŒฒ #newfeature
A new `request.currency_rate()` function allows you to retrieve a rate to convert values between currencies.
๐ŸŒฒ #newfeature
Use as many external inputs as you want from scripts, as long as they originate from no more than 10 different indicators.
https://www.tradingview.com/blog/en/more-external-inputs-for-scripts-38014/
๐ŸŒฒ #newfeature
The new array.every() and array.some() functions allow you to test if all or some elements of a "bool" array are true. They also work with "int" and "float" arrays.
๐ŸŒฒ #newfeature
In the Editor, you can now replace the "Add to chart" button with "Update on chart". This allows you to push changes to the chart's version of the script while creating only a minor revision number. Continue to use "Save" when you want to create a major revision.
๐ŸŒฒ #newfeature
A new disable_alert parameter in strategy.*() functions issuing orders allows you to prevent selective orders from triggering alerts.
๐ŸŒฒ #newfeature
A new fill_orders_on_standard_ohlc parameter for the strategy() declaration statement allows strategies running on Heikin Ashi charts to fill orders using the market's OHLC values instead of the synthetic HA prices. The setting can also be changed in the strategy's "Properties" tab.
๐ŸŒฒ #newfeature
Three new syminfo.* variables were added: syminfo.sector, syminfo.industry, syminfo.country.
๐ŸŒฒ #newfeature
The "More" menu of scripts using interactive inputs now contains a "Reset points..." item that restarts the selection process of the interactive inputs without having to reload the script on the chart.
๐ŸŒฒ #newfeature
The Reference Manual was reorganized in more meaningful sections, which you can see in its left navigation pane. Also, items in each section are now ordered alphabetically.
๐ŸŒฒ #newfeature
A new timeframe.from_seconds() function makes it easier to manipulate timeframes when used in conjunction with the existing timeframe.in_seconds(). See the code example in the new function's entry in the Reference Manual.
๐ŸŒฒ #newfeature
ticker.inherit() now allows you to transport symbol modifiers from one symbol to another when creating tickers for request.*() functions, including previously inaccessible modifiers such as back-adjustment:
https://www.tradingview.com/pine-script-reference/v5/#fun_ticker%7Bdot%7Dinherit
๐ŸŒฒ #newfeature
Access future dividend information with three new variables: dividends.future_amount, dividends.future_ex_date and dividends.future_pay_date.
๐ŸŒฒ #newfeature
The syntax of Pine Scriptยฎ code blocks in chats and published script descriptions is now highlighted.
๐ŸŒฒ #newfeature
An ignore_invalid_timeframe parameter was added to request.security_lower_tf(). It provides more control over the runtime errors generated by scripts using the function:
https://www.tradingview.com/pine-script-reference/v5/#fun_request.security_lower_tf
๐ŸŒฒ #newfeature
Use external EOD data from a GitHub repo in your scripts with our new Pine Seeds and `request.seed()`:
https://github.com/tradingview-pine-seeds/docs
๐ŸŒฒ #newfeature
The plot*() functions have two new parameters, format and precision, which allow you to selectively control how they display values in the chart paneโ€™s y-axis, the scriptโ€™s status line, and the Data Window:
https://www.tradingview.com/pine-script-docs/en/v5/Release_notes.html#december-2023