PineCoders Squawk Box
3.84K subscribers
60 photos
166 links
News & Tips on TradingView's Pine programming language
Download Telegram
πŸ”ˆ #news
TradingView now broadcasts news on TG
https://t.me/tradingview
🌲 #newfeature
The alma() built-in function now accepts a new floor parameter to control how the offset is interpreted.
https://www.tradingview.com/pine-script-reference/v4/#fun_alma
🌲 #newfeature
The behavior of rising() and falling() has changed. The functions now return true only when the series has been rising/falling consecutively for the length number of bars, whereas before it was sufficient for the previous length values to be lower/higher than the current value for the function to return true.
https://www.tradingview.com/pine-script-reference/v4/#fun_rising
https://www.tradingview.com/pine-script-reference/v4/#fun_falling
πŸ”ˆ #news
We added a FAQ entry:
How can I find the nth highest/lowest value in the last bars?

https://www.pinecoders.com/faq_and_code/#how-can-i-find-the-nth-highestlowest-value-in-the-last-bars
🌲 #newfeature
Arrays now support three additional types: line ids, label ids and strings.
Two new functions allow the manipulation of string with arrays: array.join() and str.split():
https://www.tradingview.com/pine-script-reference/v4/#fun_array{dot}join
https://www.tradingview.com/pine-script-reference/v4/#fun_str{dot}split
🌲 #newfeature
When invite-only script users are removed from the access list, they will lose access to the script after four hours, even if they do not refresh their browser tab.
πŸ‘1
πŸ”ˆ #news
How PineCoders Write and Format Script Descriptions
https://www.pinecoders.com/techniques/script_description/
πŸ”ˆ #news
The Pine User Manual has a new page on debugging techniques:
https://www.tradingview.com/pine-script-docs/en/v4/Debugging.html
πŸ’ͺ #tip
See our FAQ entry on how to split a string into characters:
https://www.pinecoders.com/faq_and_code/#how-can-i-split-a-string-into-characters
🌲 #newfeature
str.split(str, "") will now split the str string into an array of characters.
😁1
🌲 #newfeature
You can now click on a trade in the "List of Trades" tab to move the chart to it.
https://i.imgur.com/VLTOxjd.gif
πŸ‘2
PineCoders Squawk Box pinned «🌲 #newfeature You can now click on a trade in the "List of Trades" tab to move the chart to it. https://i.imgur.com/VLTOxjd.gif»
🌲 #newfeature

New banners in script pages

When users open script pages now, new banners appear under their description. These are the changes we made:
1. The banner for each type of script (open-source, protected and invite-only) contains new text.
2. Instructions for traders on how to load the script on their chart are clearer.
3. Links to Help Center pages are provided.
4. TV blue is now used for the banner's frame on open-source scripts. The icon and banner frame of protected scripts is now black/white, and red is used for invite-only scripts.
5. For invite-only scripts
β€’ A new "Author's instructions" field allows authors to include instructions for users who want to request access to the script. DO NOT ask users to use the script's "Comments" section for this. Ask them to send you a private message or use the links which you may include in that new field.
β€’ You can ALSO use the new "Author's instructions" field to include links to external content that is specific to your script, such as a Google doc containing screenshots, or a TV or YouTube video. You CANNOT use this external content to replace your script's description, which must still contain the essential information our rules require.
β€’ The "Author's instructions" field will not appear retroactively on older publications because for those, it is empty. You can, however, populate or change the field when you update your script.
β€’ A warning now appears in invite-only banners, which links to new Help Center pages warning users about using invite-only scripts.
β€’ The Help Center page and banner text is different on public and private invite-only scripts. We invite traders to more caution before paying for private invite-only scripts.

We hope you find these changes useful.