I Built a Module System for a Language That Doesn't Have One
dev.to·4h·
Discuss: DEV
📦uv
Preview
Report Post

You know what’s funny about PineScript? It’s 2025 and we’re writing trading indicators like it’s 1995. One file. Everything global. No modules. No imports. Just you, your code, and the slow descent into madness.

I’d been putting up with this for a while. I had a fairly complex indicator that used code I’d split across multiple TradingView libraries. Seemed like the right thing to do at the time. Separate concerns. Keep things clean. Very professional.

Then I needed to change one function.

The Workflow From Hell

Here’s what updating a library function looked like:

  1. Edit the code locally
  2. Push to git
  3. Copy-paste into TradingView’s editor
  4. Republish the library
  5. Note the new version number
  6. Open my indicator script
  7. Update the import statement with the new v…

Similar Posts

Loading similar posts...