teaceo-debug/DEEP6 / .claude/skills/tradingview-pinescript-error-doctor
tradingview-pinescript-error-doctor
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.2 KB |
| errors/common-compile-errors.md | markdown | 1.1 KB |
| errors/drawing-object-errors.md | markdown | 3.2 KB |
| errors/loop-and-scope-errors.md | markdown | 2.4 KB |
| errors/official-error-codes.md | markdown | 1.9 KB |
| errors/request-security-errors.md | markdown | 3.2 KB |
| errors/type-system-errors.md | markdown | 4.1 KB |
| knowledge.md | markdown | 6.3 KB |
| patterns/debug-instrumentation.md | markdown | 1.7 KB |
| patterns/quick-fixes.md | markdown | 2.1 KB |
| playbooks/alert-debugging.md | markdown | 4.3 KB |
| playbooks/expert-checklist.md | markdown | 993 B |
| playbooks/repainting-and-mtf.md | markdown | 1004 B |
| playbooks/repair-workflow.md | markdown | 588 B |
| playbooks/version-migration.md | markdown | 2.9 KB |
errors/official-error-codes.md
View on GitHub# Official Pine Error Codes
Last verified: 2026-05-22
This file covers the official TradingView error/documentation codes confirmed during research.
## `CE10101` — Condition Must Evaluate To Bool
Use when `if`, `switch`, or ternary conditions receive non-bool values.
Root fixes:
- replace numeric truthiness with explicit comparisons
- use `not na(x)` instead of treating series values as booleans
- add explicit casting only when semantically correct
## `CW10003` — History-Dependent Function In Local Scope
Use when a history-dependent function is called conditionally and risks inconsistent series construction.
Root fixes:
- compute the series every bar
- apply conditions to the result, not to whether the function executes
## `RE10139` — Memory Limits Exceeded
High-probability causes:
- returning arrays/collections from `request.security()` on every bar
- over-allocating with unnecessary historical state
- excessive object churn or large strategy state
Root fixes:
- return collections only when needed, often on `barstate.islast`
- return computed results instead of large objects when possible
- tighten historical scope and object lifecycle
## `RE10143` — Historical Buffer Overflow
High-probability causes:
- dynamic history references beyond inferred buffer depth
- conditionally hidden history usage
- drawings referencing older bars than the buffer contains
Root fixes:
- explicit `max_bars_back()` where justified
- guard and simplify dynamic bars-back logic
- compute history-dependent values outside conditional traps
## Source URLs
- `https://www.tradingview.com/pine-script-docs/errors/overview/`
- `https://www.tradingview.com/pine-script-docs/errors/CE10101/`
- `https://www.tradingview.com/pine-script-docs/errors/CW10003/`
- `https://www.tradingview.com/pine-script-docs/errors/RE10139/`
- `https://www.tradingview.com/pine-script-docs/errors/RE10143/`
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |