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-code

Installs 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

More from traderspost/pinescript-agents

All 6

Recommended

More Debugging
1madteacher avatardart-driftmadteacher/mad-agents-skillsBuild, fix, audit, and migrate Drift persistence in Dart CLI, server-side, and non-Flutter desktop apps. Use when adding SQLite with package:drift/native.dart, 474skills.sh installs
2mims-harvard avatartooluniverse-drug-researchmims-harvard/tooluniverseComprehensive drug profiling — mechanism, primary/secondary targets, drug interactions, clinical-trial status, adverse events (FAERS), pharmacogenomics, and app474skills.sh installs
3manutej avatarreact-patternsmanutej/luxor-claude-marketplaceModern React development with hooks, component patterns, state management, and performance optimization for building scalable applications473skills.sh installs
4n8n-io avatarcontent-designn8n-io/n8nProduct content designer for UI copy. Use when writing, reviewing, or auditing user-facing text: button labels, error messages, tooltips, empty states, modal co473skills.sh installs
5callstackincubator avatarrozenite-agentcallstackincubator/rozeniteUse Rozenite for Agents through CLI-driven `rozenite agent` commands to inspect React Native DevTools data and Rozenite plugins on a live app target. Trigger th471skills.sh installs
6aj-geddes avatarinfrastructure-monitoringaj-geddes/useful-ai-promptsSet up comprehensive infrastructure monitoring with Prometheus, Grafana, and alerting systems for metrics, health checks, and performance tracking.470skills.sh installs