Professional Pine Script v6 development in VS Code with IntelliSense, real-time validation, and 100% language coverage.
Real-time validation, IntelliSense, and hover documentation for Pine Script v6
Complete function signatures with parameter hints and documentation
Search for "Pine Script v6 IDE Tools" in VS Code Extensions or install directly from marketplace
Download the latest .vsix from Releases and install:
code --install-extension pinescript-v6-extension-0.4.4.vsix- 6,665 language constructs from official TradingView reference
- 457+ functions with autocomplete (ta., math., str., array., etc.)
- 31 constant namespaces (xloc, yloc, extend, scale, display, etc.)
- 22 function namespaces with full parameter validation
- 32 strategy. variables* (position_size, equity, netprofit, etc.)
- Catches undefined functions and variables
- Detects missing/extra parameters
- Validates namespace properties
- Zero false positives on valid v6 code
- Smart autocomplete for all built-in functions
- Parameter hints with type information
- Hover documentation
- Namespace-aware suggestions
- Complete Pine Script v6 syntax support
- Built-in variables and constants
- Keywords, operators, and functions
- Comments and strings
//@version=6
indicator("My Indicator", overlay=true)
// All valid v6 syntax - no false positives! β
length = input.int(14, "Length")
source = input.source(close, "Source")
// Technical analysis with autocomplete
sma_value = ta.sma(source, length)
ema_value = ta.ema(source, length)
rsi_value = ta.rsi(source, 14)
// Math functions with precision parameter
rounded = math.round(close, 2) // β
v0.4.4+ supports precision
max_val = math.max(open, close)
// Strategy variables fully supported
if strategy.position_size > 0
plot(strategy.equity, "Equity")
plot(strategy.netprofit, "Net Profit")
// Plot with all v6 constants
plot(sma_value, "SMA", color=color.new(color.blue, 50), style=plot.style_line)
plot(ema_value, "EMA", color=color.new(color.red, 50), style=plot.style_linebr)
// All namespace constants work
x = xloc.bar_index
y = yloc.price
e = extend.both
s = scale.left
The extension works out of the box with zero configuration. All Pine Script v6 features are automatically recognized.
- β
math.round()now correctly accepts optionalprecisionparameter - β
Added 32 missing
strategy.*runtime variables - β Eliminates false positives for valid strategy scripts
rounded = math.round(close, 2) // β ERROR: Too many arguments
if strategy.position_size > 0 // β οΈ WARNING: Unknown constant
rounded = math.round(close, 2) // β
Valid
if strategy.position_size > 0 // β
Valid
See CHANGELOG for complete version history.
This extension is thoroughly tested:
- 67/67 unit tests passing (100%)
- 7/8 example files validated
- Parameter validation verified
- Namespace property detection tested
npm test # Run test suiteContributions welcome! See CONTRIBUTING.md for guidelines.
- Check existing issues
- Create a new issue with:
- Pine Script code that triggers the problem
- Expected vs actual behavior
- Extension version
- Report false positives/negatives
- Suggest feature improvements
- Submit pull requests
- Share feedback
- Marketplace: Pine Script v6 IDE Tools
- Repository: GitHub
- Issues: Bug Reports
- Releases: Changelog
- Story: How This Extension Was Built (Medium)
- TradingView Pine Script Reference: Official Docs
MIT License - see LICENSE for details.
Created by Jaroslav Pantsjoha
Special thanks to:
- TradingView for Pine Script
- VS Code extension development community
- All contributors and testers
Full Language Coverage: 6,665 Pine Script v6 constructs Test Coverage: 67 comprehensive tests Current Version: 0.4.4