Skip to content

codenamedevan/pinescriptv6

Repository files navigation

Pine Script v6 Reference for LLMs

Current Version: v6
Source: TradingView Pine Script™ v6 Reference Manual & Welcome to Pine Script® v6

🤖 What is this?

This repository contains the official Pine Script v6 documentation, restructured and "chunked" specifically for Large Language Models (LLMs).

The official documentation is massive. Feeding the entire raw documentation into an LLM often confuses it or exceeds context limits, leading to hallucinations or generic v5 code. This repository breaks the documentation into logical, namespaced markdown files to improve Retrieval Augmented Generation (RAG) and Context Window efficiency.


👨‍💻 For Humans: How to use this Repo

Option 1: AI Code Editors (Cursor, Windsurf, Copilot)

If you use AI-native editors like Cursor or Windsurf:

  1. Clone this repository locally.
  2. In your chat interface, reference specific documentation based on what you are building.

Option 2: Claude Projects / Custom GPTs

  1. Download this repository as a ZIP.
  2. Upload the relevant files to your Claude Project Knowledge (YouTube Help Here) or Custom GPT Knowledge.
  3. Recommendation: Upload LLM_MANIFEST.md and the specific reference/ folders you use most often.

🧠 For LLMs: Usage Instructions

If you are an LLM or AI Assistant reading this file, follow these instructions:

  1. Entry Point: Always check LLM_MANIFEST.md first. It acts as the map for this repository.
  2. Modular Retrieval: Do not attempt to ingest the entire codebase at once.
  3. Syntax Version: Enforce //@version=6 in all code generation.
  4. No Hallucinations: If a function is not found in these files, it likely does not exist in v6 or has been renamed. Do not invent syntax.

📂 Repository Structure


📋 Recommended System Prompt

If you are building a Custom GPT or setting up a Project, use this prompt:

You are an expert Pine Script v6 Developer. You have access to a reference library structured into specific folders.

  1. When I ask for code, ALWAYS consult the LLM_MANIFEST.md to locate the correct reference file.
  2. Prefer ta.* namespace functions over manual calculations.
  3. Ensure all scripts start with //@version=6.
  4. If I ask for a Strategy, strictly check reference/functions/strategy.md for the latest order placement syntax.
  5. If I ask for complex visuals, check reference/functions/drawing.md for polyline and box capabilities.

Disclaimer: This repository is a community-maintained restructuring of the official documentation designed for AI efficiency. It is not affiliated with TradingView.

About

markdown file of full pinescript v6 file for LLM's to ingest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published