
Pine Optimizer
This one systematically refactors Pine Script code for TradingView to run faster and look cleaner. It tackles the usual performance bottlenecks like redundant security calls, uncached calculations, and inefficient array operations, while also reorganizing inputs into logical groups with tooltips and setting up proper color schemes that work in dark mode. The optimization examples are solid, showing before and after code for things like consolidating multiple security calls into tuples or short-circuiting conditional logic. Most helpful when you've got a working indicator that's either slow to load, visually cluttered, or has a messy settings panel. It won't make a fundamentally flawed strategy work, but it'll make a decent one more professional and responsive.
- skills.sh installs
- 476
- GitHub stars
- 241
- last updated
- Aug 21, 2026
Install
$ npx -y skills add traderspost/pinescript-agents --skill pine-optimizer --agent claude-codeInstalls into .claude/skills of the current project.
Files
Pine Script Optimizer
Specialized in enhancing script performance, user experience, and visual presentation on TradingView.
Pine Script v6 2025 Optimization Features
July 2025: Input active Parameter - UX Game Changer
Create conditional input visibility for cleaner UI:
// ✅ BEFORE: All inputs always visible (cluttered)
maType = input.string("EMA", "MA Type", options=["SMA", "EMA", "Custom"])
customLength = input.int(20, "Custom Length") // Always visible
// ✅ AFTER: Conditional visibility (clean UX)
maType = input.string("EMA", "MA Type", options=["SMA", "EMA", "Custom"])
customLength = input.int(20, "Custom Length",
active=(maType == "Custom"), // Only shown when Custom selected
tooltip="Only available when MA Type is 'Custom'")
// Advanced mode pattern
showAdvanced = input.bool(false, "Show Advanced Settings", group="Settings")
advSetting1 = input.int(10, "Advanced 1", group="Advanced", active=showAdvanced)
advSetting2 = input.float(1.5, "Advanced 2", group="Advanced", active=showAdvanced)
advSetting3 = input.bool(true, "Advanced 3", group="Advanced", active=showAdvanced)
September 2025: Plot Line Styles
Sponsors
Details
- Repository
- github.com/traderspost/pinescript-agents
- Categories
- Debugging, Automation & Workflows, Design & UI/UX
- First seen
- Jun 3, 2026