Skip to main content
Esc

Type to search

Articles / trading-platforms / Pine Script™ does objects

Pine Script™ does objects

May 28, 2026 · Source: tradingview.com · Topic:  trading-platforms

§ 01 Executive Snapshot

  • What: TradingView has introduced new user-defined types (UDTs) to its Pine Script® programming language, allowing for the creation of objects.
  • Who: TradingView, PineCoders, and the user community of Pine Script®.
  • Why it matters: This update enhances the programming capabilities for traders, enabling more sophisticated trading models and better data management.

§ 02 Key Developments

  • Pine Script® now supports user-defined composite types (UDTs) declared using the type keyword, allowing for more complex data structures.
  • Users can create objects with specific fields, such as the pivotPoint type that combines time and level data.
  • The new object functionality allows for improved backtesting, alerts for trading bots, and better integration with existing Pine features.

§ 03 Strategic Context

  • Since its launch in 2013, Pine Script® has evolved significantly, driven by user feedback and demands for enhanced programming capabilities.
  • The introduction of objects aligns with broader trends in programming languages towards object-oriented design, improving usability for traders who may not have extensive programming backgrounds.

§ 04 Strategic Implications

  • This enhancement could attract more sophisticated traders to TradingView, as it enables the development of more advanced trading strategies.
  • Long-term, the ability to create and manipulate objects may lead to greater innovation within the TradingView ecosystem, fostering a more engaged user community.

§ 05 Risks & Constraints

  • Potential learning curve for existing users unfamiliar with object-oriented programming concepts, which may hinder immediate adoption.
  • Competition from other trading platforms that might offer similar or more advanced programming features could impact TradingView's market share.

§ 06 Watchlist / Forward Signals

  • Future updates to Pine Script® are expected, as indicated by ongoing user feedback mechanisms and release notes.
  • Monitoring adoption rates of the new object functionality will provide insights into user engagement and satisfaction with Pine Script® enhancements.
§ 07

Frequently Asked Questions

What new feature has TradingView introduced in Pine Script®?

TradingView has introduced user-defined types (UDTs) to Pine Script®, allowing for the creation of objects.

Why is the introduction of objects in Pine Script® significant?

This update enhances programming capabilities for traders, enabling more sophisticated trading models and better data management.

How can users benefit from the new object functionality in Pine Script®?

Users can create objects with specific fields, improving backtesting, alerts for trading bots, and integration with existing Pine features.

Who is involved in the development of Pine Script®?

The development involves TradingView, PineCoders, and the user community of Pine Script®.

§ 08

Related Articles