pinescript

Provide Pine Script v6 patterns and templates for TradingView indicators and strategies.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/S23Web3/Vault --skill pinescript-s23web3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pinescript
Source: https://github.com/S23Web3/Vault/tree/main/claude/skills/pinescript
Command: npx skills add https://github.com/S23Web3/Vault --skill pinescript-s23web3

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Pine Script v6 development can be complex and error-prone; this skill provides a comprehensive, a self-contained framework and reference to build robust TradingView indicators and strategies, including modern v6 syntax, patterns, and tooling.

Core Features & Use Cases

  • Comprehensive Pine Script v6 syntax coverage (variables, types, UDTs, arrays, and control structures) for indicators and strategies.
  • Practical patterns and templates (ripster EMA clouds, anchored VWAP, quad rotation stochastic, BBWP, and state-machine/divergence detections) with clear examples.
  • Built-in references for alerting, webhooks, multi-timeframe data, and risk/position management to accelerate production-ready scripting.

Quick Start

Use Pine Script v6 to implement a simple indicator that plots a fast EMA crossing a slow EMA on a chart.

Frequently Asked Questions about pinescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Pine Script v6 strategy with webhook alerts on TradingView?

To write a Pine Script v6 strategy with webhook alerts on TradingView, use built-in reference patterns for alerting and webhooks provided by the skill. It offers ready-to-use templates to configure alert conditions and generate production-ready webhook integrations.

Does Pine Script v6 support multi-timeframe data and user-defined types?

Yes, Pine Script v6 supports multi-timeframe data and user-defined types (UDTs). The skill provides comprehensive syntax coverage and practical workflows to implement variables, custom types, arrays, and multi-timeframe analysis in TradingView.

What is the best way to build an anchored VWAP indicator in Pine Script?

The best way to build an anchored VWAP indicator in Pine Script is to use pre-built templates. The skill includes practical reference patterns for anchored VWAP, Ripster EMA clouds, and BBWP to accelerate your TradingView development.

Can I use Pine Script to detect divergences using state machines?

Yes, you can use Pine Script to detect divergences using state machines. The skill provides clear examples and practical patterns for implementing state-machine logic and divergence detections within your TradingView indicators.

Why does my TradingView indicator fail when migrating to Pine Script v6 syntax?

Your TradingView indicator may fail during migration due to changes in the Pine Script v6 execution model and type system. The skill provides reference documentation to satisfy modern v6 syntax, ensuring your variables, types, and control structures compile correctly.

How do I plot a fast EMA crossing a slow EMA in Pine Script v6?

To plot a fast EMA crossing a slow EMA in Pine Script v6, implement a simple indicator using the skill's quick start framework. It provides the necessary syntax coverage for variables and control structures to plot moving average crosses on a TradingView chart.