PineCone
A module bundler for PineScript



PineCone is a bundler for PineScript, the programming language used in TradingView for building custom indicators and trading strategies.
TradingView doesn't natively support multi-file projects, which makes managing large codebases painful. PineCone solves this by introducing a module system with // @import and // @export directives, allowing developers to organize their code across multiple files.
When you run pinecone build, it resolves all dependencies, automatically namespaces identifiers to prevent collisions, and outputs a single TradingView-compatible script.
Built with Python, it also includes watch mode for rapid development and clipboard integration for seamless copy-paste into TradingView.
If you're curious to know more, I wrote a blog post about why I built PineCone and the challenges of adding a module system to a language that doesn't have one.
Gallery
Subscribe to the Newsletter
Developer insights, project updates, and the occasional Seinfeld reference. No spam, no shrinkage.