A comprehensive Pine Script development environment powered by Claude Code's subagent system. This tool helps you create professional TradingView indicators and strategies with AI assistance.
Just type start
to begin!
-
Clone the repository
git clone https://github.com/tosaha/pinescript-agents.git cd pinescript-agents
-
Open in your IDE with Claude Code
# VS Code with Claude extension code . # Or use Claude Code CLI claude code .
-
Just type "start" in Claude chat
start
This launches an interactive guide that helps you:
- Create custom scripts
- Analyze YouTube videos
- Choose from templates
- Understand system capabilities
-
Or jump straight to creating
Create an RSI divergence indicator with alerts Build a mean reversion strategy using Bollinger Bands Analyze this video: https://youtube.com/watch?v=...
Other helpful commands:
help
- Show all available commandsexamples
- List example scriptstemplates
- Show quick templates
This project includes 7 specialized Pine Script agents:
Breaks down your trading ideas into implementable components
- Analyzes requirements
- Creates implementation roadmaps
- Identifies potential challenges
Writes production-quality Pine Script v6 code
- Implements indicators and strategies
- Follows TradingView best practices
- Handles edge cases properly
Adds debugging tools and troubleshoots issues
- Inserts debug labels and tables
- Identifies repainting problems
- Fixes calculation errors
Implements comprehensive testing capabilities
- Adds performance metrics
- Calculates win rates and drawdowns
- Provides trade statistics
Enhances script performance and user experience
- Reduces loading times
- Improves visual presentation
- Optimizes calculations
Orchestrates complex multi-step development
- Coordinates all agents
- Manages workflows
- Ensures quality
Prepares scripts for TradingView publication
- Adds documentation
- Ensures compliance
- Optimizes for discoverability
pinescript-agents/
βββ .claude/
β βββ agents/ # AI agent configurations
βββ docs/
β βββ pinescript-v6/ # Pine Script documentation
β βββ tradingview/ # Platform documentation
βββ templates/ # Ready-to-use templates
β βββ indicators/ # Indicator templates
β βββ strategies/ # Strategy templates
β βββ utilities/ # Helper functions
βββ examples/ # Example scripts
βββ tools/ # Utility scripts
βββ CLAUDE.md # Claude Code instructions
Just type these single words in Claude chat:
start
- Launch interactive setup guidehelp
- Show available commandsexamples
- List all example scriptstemplates
- Show quick templates
You: Analyze this video: https://youtube.com/watch?v=...
Claude: [Extracts transcript, identifies components, creates specification]
You: "Create a moving average crossover indicator"
Claude: [Uses pine-developer to create the indicator with proper inputs and alerts]
You: "Build a strategy that combines RSI, MACD, and volume analysis with proper risk management"
Claude: [Uses pine-manager to coordinate multiple agents for complete implementation]
You: "My script is repainting, help me fix it"
Claude: [Uses pine-debugger to identify and fix repainting issues]
You: "Make my script load faster"
Claude: [Uses pine-optimizer to improve calculation efficiency]
You: "Prepare my script for TradingView publication"
Claude: [Uses pine-publisher to add documentation and ensure compliance]
- Momentum: RSI, Stochastic, MACD variations
- Trend: Moving average systems, Supertrend
- Volume: OBV, Volume Profile, CVD
- Volatility: Bollinger Bands, ATR, Keltner Channels
- Trend Following: MA crosses, trend riders
- Mean Reversion: Oversold/overbought systems
- Breakout: Range breakouts, Donchian channels
- Scalping: Quick entry/exit systems
- Risk Management: Position sizing, stop losses
- Debugging: Label outputs, table monitors
- Backtesting: Performance metrics, statistics
No need for complex commands! Just talk to Claude naturally:
- Simple words trigger actions: Type
start
,help
,examples
- Describe what you want: "Create a strategy that buys on RSI oversold"
- Share videos: "Analyze this YouTube video: [URL]"
- Ask for help: "What can you do?" or "Show me examples"
- Pine Script v6 Support: Full compatibility with latest Pine Script version
- Intelligent Workflow: Automatic agent selection based on task
- Template Library: Pre-built components for rapid development
- Debug Tools: Built-in debugging capabilities
- Performance Metrics: Comprehensive backtesting statistics
- Publication Ready: Scripts prepared for TradingView community
- Describe Your Idea: Tell Claude what you want to create
- Automatic Planning: Agents break down requirements
- Implementation: Code is written following best practices
- Testing: Debug tools and backtesting added
- Optimization: Performance and UX enhanced
- Delivery: Complete, production-ready script
- Always test scripts on multiple timeframes
- Include proper error handling
- Add tooltips to all inputs
- Document complex logic
- Avoid repainting issues
- Optimize for performance
- Follow TradingView guidelines
"Create indicator"
- Start new indicator development"Create strategy"
- Start new strategy development"Debug my script"
- Fix issues in existing code"Add backtesting"
- Include performance metrics"Optimize performance"
- Improve script efficiency"Prepare for publishing"
- Get ready for TradingView
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch
- Add new templates or improve agents
- Submit a pull request
MIT License - feel free to use this project for any purpose.
- Built for use with Claude Code
- Designed for TradingView Pine Script v6
- Community contributions and feedback
For issues, questions, or suggestions:
- Open an issue on GitHub
- Check existing documentation
- Review example scripts
Ready to create professional Pine Scripts? Open this project in Claude Code and start building!