uz
Feedback
PineCoders Squawk Box

PineCoders Squawk Box

Kanalga Telegram’da o‘tish

News & Tips on TradingView's Pine programming language

Ko'proq ko'rsatish
3 493
Obunachilar
Ma'lumot yo'q24 soatlar
+157 kunlar
+4730 kunlar
Postlar arxiv
🌲 #newfeature The "More" menu of scripts using interactive inputs now contains a "Reset points..." item that restarts the se
🌲 #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.

💪 #tip Better late then never ) We added a usrman page on matrices: https://www.tradingview.com/pine-script-docs/en/v5/language/Matrices.html

🌲 #newfeature Three new syminfo.* variables were added: syminfo.sector, syminfo.industry, syminfo.country.

🌲 #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 A new disable_alert parameter in strategy.*() functions issuing orders allows you to prevent selective orders from triggering alerts.

🌲 #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.

💪 #tip The "Strategy" section of the User Manual was vastly expanded. It contains much more details and code examples: https://www.tradingview.com/pine-script-docs/en/v5/concepts/Strategies.html

🌲 #newfeature The new `array.every() and array.some() functions allow you to test if all or some elements of a "bool" array are `true. It also works with "int" and "float" arrays.

🌲 #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 A new `request.currency_rate()` function allows you to retrieve a rate to convert values between currencies.

🌲 #newfeature Pine Script™ now supports the equivalent of extension methods. Read about them in the usrman's new page on Pine methods.

🌲 #newfeature The Editor now has a "Settings" dialog box accessible from the "More" menu. Among other things, it allows you
🌲 #newfeature The Editor now has a "Settings" dialog box accessible from the "More" menu. Among other things, it allows you to disable autocomplete.

🌲 #newfeature Today we introduce user-defined types and objects to Pine Script™: https://www.tradingview.com/blog/en/pine-script-does-objects-35230/

🌲 #newfeature Three new functions were added to access trade comments in strategies: `strategy.opentrades.entry_comment()` `strategy.closedtrades.entry_comment()` `strategy.closedtrades.exit_comment()`

🌲 #newfeature When opening your script in a new window of the Editor, the size of the last-used window is remembered.

🌲 #newfeature The editor now has code snippets to help you with a few common constructs such as if, switch, for and while. M
🌲 #newfeature The editor now has code snippets to help you with a few common constructs such as if, switch, for and while. More are planned.

🛠 #fix math.round_to_mintick() used to return zero when used on na values. It now returns na in those cases.

🌲 #newfeature `str.format_time(time, format, timezone)` allows you to convert a Unix timestamp into a formatted string, while also allowing its translation to a timezone:
//@version=5
indicator("str.format_time")
if timeframe.change("1D")
    // Time in exchange tz.
  formattedTime1 = str.format_time(time, "yyyy-MM-dd HH:mm", syminfo.timezone)
    // Time in UTC tz using `str.format()`.
  formattedTime2 = str.format("{0,time,yyyy-MM-dd HH:mm}", time)
    // Time in UTC tz using `str.format_time()`.
  formattedTime3 = str.format_time(time, "yyyy-MM-dd HH:mm", "UTC")
  label.new(bar_index, high, formattedTime1 + "\n" + formattedTime2 + "\n" + formattedTime3)

🌲 #newfeature The formatting of the Editor's console messages was streamlined and timestamps added to them. Remember that yo
🌲 #newfeature The formatting of the Editor's console messages was streamlined and timestamps added to them. Remember that you can click on error messages to bring you to the offending code in your script.

🛠 #fix When a plot style was used and script users changed it in the "Style" tab, and then changed an input value, the plot's style was reset. This no longer happens.