Pine Script Templates
Browse available templates for quick project starts.
Instructions
When this skill is invoked:
List all templates from the
templates/directoryOrganize by category:
templates/indicators/- Indicator patternstemplates/strategies/- Strategy patternstemplates/utilities/- Helper functions
Show template details:
- Name and purpose
- Key features included
- Customization points
Template Categories
Indicators
- Momentum (RSI, MACD variations)
- Trend (Moving averages, channels)
- Volatility (ATR-based, Bollinger)
- Volume (Volume profiles, OBV)
Strategies
- Trend Following (MA crossover, breakout)
- Mean Reversion (Bollinger, RSI extremes)
- Momentum (MACD, RSI strategies)
Utilities
- Debug panels
- Risk management helpers
- Session filters
- Alert builders
Using a Template
When user selects a template:
Copy to projects/:
- Rename to descriptive project name
- E.g.,
templates/indicators/rsi-divergence.pine→projects/my-rsi-scanner.pine
Explain customization points:
- Which inputs to adjust
- Where to add custom logic
- How to modify visuals
Help customize based on user needs
Quick Start
Suggest popular templates based on common requests:
- "RSI indicator" →
templates/indicators/rsi-momentum.pine - "Moving average strategy" →
templates/strategies/ema-cross.pine - "Volume analysis" →
templates/indicators/volume-profile.pine