Pine Script v6

AI editörler için Pine Script v6 referansı ve hata hafızası.
Your AI editor now writes Pine Script v6 correctly — and never forgets its mistakes.

Pine Script v6 9 AI Editor 56+ Examples MIT License
Ugur Pala · TradingView · X / Twitter

Problem & Solution

v5 — AI writes this (broken)
//@version=6 study("My Indicator", overlay=true) htf = security(syminfo.tickerid, "D", close) len = input(14, type=input.integer) [k, d] = ta.stoch(close, high, low, 14)
v6 — With this repo (works)
//@version=6 indicator("My Indicator", overlay=true) htf = request.security(syminfo.tickerid, "D", close[1]) int len = input.int(14, "Length") float k = ta.stoch(close, high, low, 14)

Repo Stats

56
.pine files
9
AI Editors
11
Solved Errors
22
Global Markets

v5 → v6 Migration

v5 (don't write)v6 (write this)
study("name")indicator("name")
security(ticker, tf, expr)request.security(ticker, tf, expr)
input(14, type=input.integer)input.int(14, "Label")
[k, d] = ta.stoch(...)float k = ta.stoch(...)
math.avg(a, b)(a + b) / 2
alertcondition() in strategyalert() inside if
barstate.islastbarstate.isconfirmed

Supported AI Editors

Claude
Cursor
Windsurf
GitHub Copilot
Cline
Roo
Aider
Zed
Any LLM

What's Inside

FolderCountContent
examples/indicators/18EMA, RSI, MACD, BB, Supertrend, VWAP, Ichimoku, MTF...
examples/strategies/14EMA cross, RSI, Supertrend, MTF, VIOP Session, Fakeout...
global-markets/22ES, NQ, Gold, Crude, EUR/USD, BTC, ETH, DAX, Nikkei...
webhook-templates/7Telegram, Discord, JSON, VIOP alerts
v5-to-v6-migration/10Complete migration guide with examples
reference/6ta.*, strategy.*, request.*, drawing.*, collections.*

Published on TradingView

ScriptStatus
Fakeout Filter — 4-Layer Signal Quality Published
VIOP Session Strategy Ready
Fakeout Confirmed Strategy Ready
GitHub Repo

Clone the repo, connect to your AI editor, and start writing correct Pine Script v6.