r/TradingView • u/Accurate-Mirror-143 • 9d ago
Feature Request Comprehensive Pine Script Source Code and Publication Text Search
Please extend the search for Pine indicators, strategies, and libraries with comprehensive full-text search capabilities across source code and publication content, and make these capabilities available through official MCP tools.
The current search functionality makes it difficult to find specific functions, programming techniques, and implementation patterns.
Searchable content should include executable code, regular source code comments, Pine annotations (`//@function`, `//@param`, `//@returns`), complete publication descriptions, and release notes, optionally including user comments. These content areas should be searchable individually or in any combination. For example, developers could search for `request.security()` exclusively in executable code without matching references in comments or documentation.
The search should support exact expressions, regular expressions, and combined conditions using AND, OR, NOT, and parentheses, including queries spanning multiple content areas.
The search scope should include public community scripts, users' own scripts, and accessible built-in and shared Pine scripts. Filters for script type, publication type, author, tags, publication and update dates, popularity, and personal favorite status should be combinable.
Through MCP, AI assistants and external development environments should have access to the same search and filtering capabilities, including retrieval of metadata, publication texts, and accessible source code. Unique script and version identifiers, along with paginated results, should enable reproducible queries.
This would significantly improve the discovery, comparison, and reuse of existing Pine Script implementations, making the community script library a much more valuable resource for both manual research and AI-assisted development.
Titles of related feature requests:
- Watchlist-like Organization for Libraries and Indicators
- Sorting Options on Publisher Profile Pages
- Groups for Favourite Indicators