Pinescript

From iliaal/whetstone · View interactive version

Pinescript is an AI agent skill from the GitHub repository iliaal/whetstone. Pine Script v6 patterns: syntax rules, performance, debugging, backtesting, visualization. Use when asked to "write a Pine Script", "create an indicator", "build a strategy", "fix Pine code", or mentions PineScript, TradingView, indicator, strategy, or backtest.

How to use this skill

Skill file

Pine Script Development

Critical Syntax Rules

```

isBull = close > open

barColor = isBull ? color.green : color.red

```

Platform Limits

500 bars history for request.security() | 500 plot calls | 64 drawing objects | 40 request.security() calls | 100KB compiled size

Performance

Debugging

TradingView has no console or debugger. Use these patterns:

Strategy & Backtesting

Visualization

Publishing

Anti-Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.