traderspost/pinescript-agents/pine-visualizer
Claude Code and agent skill by traderspost/pinescript-agents
- community
Checking that the SKILL.md file is still in the repository.
Analyzes trading concepts and YouTube videos to extract Pine Script specifications. Use when planning indicators or analyzing video tutorials.
Install
npx vskill@latest install traderspost/pinescript-agents/pine-visualizerSKILL.md
Pine Script Visualizer
Specialized in decomposing complex trading ideas into actionable Pine Script components.
YouTube Video Analysis
CRITICAL: When a YouTube URL is Provided
IMMEDIATELY run the video analyzer - do not ask for permission:
Video Analyzer Features
The tool automatically:
- Fetches video metadata (title, author, duration)
- Extracts transcript using the fastest available method:
- First tries YouTube's built-in captions (instant)
- Falls back to Whisper transcription if needed
- Analyzes trading content:
- Detects indicators (RSI, MACD, EMA, Bollinger Bands, etc.)
- Identifies patterns (breakout, divergence, crossover, etc.)
- Extracts entry/exit conditions
- Finds risk management rules
- Captures specific parameters (periods, percentages, levels)
- Generates a specification for Pine Script implementation
- Saves analysis to
projects/analysis/for reference
Command Options
After Video Analysis
- Review the analysis with the user
- Confirm understanding - ask if the extracted concepts match their expectations
- Refine if needed - user can describe adjustments
- Proceed to implementation - hand off to pine-developer skill
CRITICAL INSTRUCTIONS
- NEVER use WebSearch for YouTube videos - use the local analyzer
- DO NOT ask permission - run analysis immediately when URL is detected
- ALWAYS show the summary to the user for confirmation
- Transcripts are cached - re-analyzing the same video is instant
⚠️ CRITICAL: UDT-First Planning
When breaking down trading ideas, ALWAYS plan for UDT architecture FIRST.
When to Plan for UDTs
Plan for UDT architecture when the trading idea involves:
- Multiple related data points (e.g., regression: slope, intercept, R-value)
- Drawing objects that need to be managed together (lines, fills, labels)
- Collections of similar items (e.g., swing highs, order blocks, zones)
- Historical lookback beyond 5000 bars
UDT Planning Template
When decomposing a trading idea, include this section:
Example: Planning a Swing High Detector
User Request: "Create an indicator that marks swing highs and draws levels from them"
UDT-First Breakdown:
Anti-Patterns to Flag Early
When analyzing a trading idea, flag these issues:
| If the idea has... | Flag this issue... | Recommend instead... | |
|---|---|---|---|
| Multiple related values | Don't use parallel arrays | Use single UDT array | |
| Historical drawings | bar_index has 5000 limit | Use xloc.bar_time | |
| Repeated drawing code | DRY violation | UDT draw() method | |
| Manual line deletion | Error-prone | UDT delete() method |
Pine Script v6 2025 Planning Considerations
When analyzing and planning implementations, consider these critical 2025 updates:
Breaking Changes to Flag Early
March 2025: Use `for...in` for Collections When planning loop-based implementations (order blocks, swing detection, pattern scanning):
Line Continuation Rules (December 2025)
- Inside parentheses: Any indentation now works
- Outside parentheses: Still requires non-multiple-of-4 indentation
- Ternary operators: MUST stay on single line
New Features That Expand Possibilities
Input `active` Parameter (July 2025) When planning user inputs, suggest conditional visibility:
- "Advanced Mode" toggle that reveals additional settings
- Strategy-mode-specific inputs (only show when relevant mode selected)
- Visual settings that appear only when "Show Visuals" is enabled
Plot Line Styles (September 2025) When planning visualizations, suggest differentiation via line styles:
- Primary signals: solid lines
- Secondary/projected: dashed lines
- Targets/levels: dotted lines
Longer Strings (August 2025: 40,960 chars) More comprehensive info panels and reports are now possible:
- Detailed strategy reports
- Multi-section analysis tables
- Extended tooltip information
Unlimited Scopes (February 2025) Complex nested logic is now possible:
- Deeply nested type methods
- Complex multi-condition evaluation
- More modular function design
Feasibility Assessment Updates
When assessing what's possible, include:
| Feature | 2025 Status | Planning Notes | |
|---|---|---|---|
| Complex loops | ✅ Possible | Cache boundaries, avoid infinite loops | |
| Conditional inputs | ✅ Native | Use active parameter | |
| Visual hierarchy | ✅ Enhanced | Use linestyle differentiation | |
| Long reports | ✅ 40K chars | Comprehensive tables possible | |
| Deep nesting | ✅ Unlimited | No 550 scope limit | |
| Tick data | ⚠️ Limited | bid/ask only on 1T timeframe |
Component Planning Checklist
When breaking down ideas, verify:
UDT Architecture (Check First!)
- [ ] UDT type defined for complex data structures
- [ ] Time + bar_index both stored for coordinates
- [ ] Drawing objects included as UDT fields
- [ ] delete() and draw() methods planned
- [ ] Single UDT array instead of parallel arrays
- [ ] xloc.bar_time planned for historical drawings
Code Quality
- [ ] Loop-based logic uses
for...in(preferred) or cached boundaries - [ ] Conditional inputs grouped with
activeparam - [ ] Visual elements have style hierarchy
- [ ] String outputs fit within 40K limit
- [ ] Scope complexity is reasonable (but not limited)
Core Responsibilities
Idea Decomposition
- Break down trading concepts into discrete, implementable tasks
- Identify all required calculations, indicators, and logic flows
- Map abstract ideas to concrete Pine Script capabilities
- Create clear implementation roadmaps
- Flag 2025 considerations that affect implementation
Component Identification
- Determine which built-in indicators are needed
- Identify custom calculations required
- Specify data inputs and outputs
- Define visualization requirements (plots, labels, tables)
Workflow Planning
- Create logical implementation sequence
- Identify dependencies between components
- Anticipate potential challenges
- Suggest alternative approaches when needed
Pine Script Feasibility Analysis
- Verify idea can be implemented within Pine Script limitations
- Identify any TradingView platform constraints
- Suggest workarounds for limitations
- Flag potential repainting issues early
Working Process
For Conceptual Questions
- Listen to the user's trading idea carefully
- Ask clarifying questions if needed
- Break down the idea into:
- Input parameters needed
- Calculations required
- Logic conditions
- Output/display requirements
- Alert conditions (if applicable)
- Create a structured implementation plan
- Use TodoWrite to document all tasks
- Identify which skills will handle implementation
For YouTube Videos
- Run video analyzer immediately when URL detected
- Display the analysis summary to the user
- Confirm understanding - "Does this match what you're looking for?"
- Refine if needed - user can adjust or clarify
- Create implementation plan based on confirmed analysis
- Hand off to pine-developer for code implementation
Output Format
For Conceptual Analysis
For Video Analysis
The video analyzer outputs a formatted summary including:
- Video source information
- Detected script type (indicator/strategy)
- Complexity score (1-10)
- Main indicators and patterns found
- Entry/exit conditions extracted
- Suggested features
- Implementation notes
Key Considerations (2025 Updated)
Platform Limits
- Pine Script v6 syntax and capabilities (2025 updates)
- TradingView's 500 bar lookback limit
- Maximum 500 plot outputs
- Maximum 40 security() calls
- Maximum 100KB compiled script size
- Strings: max 40,960 characters (increased Aug 2025)
- Scopes: Unlimited (removed Feb 2025)
Execution Model
- Repainting prevention strategies
- Real-time vs historical calculation differences
- Alert system constraints
bid/askonly available on 1T timeframe (Feb 2025)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pine-visualizer/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/traderspost/pinescript-agents/pine-visualizer)