Skip to content

teaceo-debug/DEEP6 / .claude/skills/tradingview-pinescript-error-doctor

tradingview-pinescript-error-doctor

Verified

playbooks/repainting-and-mtf.md

View on GitHub
# Repainting and MTF Playbook

Last verified: 2026-05-22

Use this file when the script compiles but behaves dishonestly or inconsistently across replay, realtime, or timeframe changes.

## Common Causes

- `request.security(..., lookahead=barmerge.lookahead_on)`
- using current higher-timeframe bar data as if confirmed
- signals firing intrabar without the user understanding the consequence
- `varip` state that has no historical equivalent
- drawings anchored to `bar_index` when they should be anchored to `time`

## First Repairs To Try

- default to `barmerge.lookahead_off`
- gate close-confirmed logic with `barstate.isconfirmed` when appropriate
- use previous confirmed HTF values where the strategy requires non-repainting behavior
- move candle-locked drawings to `xloc.bar_time`

## Verification

- compare chart state after replay stepping
- inspect labels/lines/boxes after timeframe changes
- for strategies, compare trade behavior with and without intrabar options consciously enabled
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall