pinescript
Skill by iliaal
Pinescript is a skill for writing and debugging Pine Script v6 files for TradingView. It covers syntax rules, performance, error diagnosis, backtesting and visualization. It is aimed at developers building TradingView indicators and strategies.
Install pinescript
Built from the published package, never by AI.
git clone --depth 1 https://github.com/iliaal/ai-skills /tmp/ai-skills && mkdir -p ~/.claude/skills && cp -r /tmp/ai-skills/skills/pinescript ~/.claude/skills/pinescriptRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/iliaal/ai-skills /tmp/ai-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ai-skills/skills/pinescript ~/.gemini/antigravity-cli/skills/pinescriptAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for Pine Script v6, the language used for TradingView indicators and strategies. It applies when writing or debugging .pine files. The guidance covers critical syntax rules, such as indentation for continuation lines and avoiding plot() inside local scopes. It also covers platform limits, performance patterns for request.security() and arrays, and debugging with Pine Logs, labels and table monitors.
The skill includes strategy and backtesting practices, such as drawdown tracking, annualized Sharpe estimates and walk-forward validation. It also covers visualization and publishing conventions. The source tells the assistant to check current official TradingView docs before writing version-specific code. It is written for Pine Script developers who build and test trading scripts.
Written from the project's SKILL.md and checked against it.
What it can do
- Syntax rulesExplains Pine Script v6 syntax rules, including continuation line indentation and ternary expressions.
- Performance patternsCovers tuple security calls, pre-allocated arrays, and caching repeated calculations.
- DebuggingDescribes Pine Logs, label debugging, table monitors and repainting checks.
- Strategy backtestingShows drawdown tracking, annualized Sharpe estimates and strategy.* functions.
- Walk-forward validationGuides optimizing on one period and testing on the next to check for overfitting.
- Platform limitsLists drawing, plot and request limits to check before sizing a script.
- VisualizationCovers gradient coloring, adaptive text sizing and dynamic table rows.
- Publishing conventionsDescribes documentation comments and @version, @description and @param tags.
What you need
- Access to TradingView Pine Editor for compiling and testing scripts
- Web tools or Context7 to read current Pine Script docs
Try asking
- Write a Pine Script v6 indicator that colors bars by trend strength.
- Debug this .pine file and explain why it fails to compile.
- Add walk-forward validation and a drawdown check to my Pine strategy.
Good to know
- TradingView updates Pine Script often, so the source says training data may be stale.
- The source says to check current platform limits and publishing rules before relying on them.
- The source does not give a universal threshold for detecting overfitting.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pinescript/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pinescript
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
pinescript: common questions
What version of Pine Script does this skill cover?
The skill targets Pine Script v6. The source tells the assistant to look up current official docs for version-specific syntax and new built-in functions.
Does this skill help with backtesting strategies?
Yes. The source covers strategy.* functions, drawdown tracking, annualized Sharpe estimates and walk-forward validation.
What file types does the skill apply to?
It applies to files matching **/*.pine, which are Pine Script files, and to TradingView Pine indicators and strategies.
How do I install pinescript?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pinescript free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pinescript safe to use?
It scores 58 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pinescript?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
