pine-debugger

Debug Pine Script v6 indicators and strategies with label-based tools and repainting detection.

139|50|Updated Aug 14, 2025
One-click install
npx skills add https://github.com/TradersPost/pinescript-agents --skill pine-debugger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pine-debugger
Source: https://github.com/TradersPost/pinescript-agents/tree/main/.claude/skills/pine-debugger
Command: npx skills add https://github.com/TradersPost/pinescript-agents --skill pine-debugger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pine Script debugging needs specialized tools to quickly identify errors and misbehavior in TradingView code, reducing time spent chasing issues.

Core Features & Use Cases

  • Debug toolkit: label-based debugging, tables, hist tracking, repainting detection, calculation flow tracing
  • Troubleshooting Pine Script edges: repainting, na propagation, performance bottlenecks
  • Use Case: Provide scenario examples

Quick Start

Enable Debug Mode and run the Pine Script debugger on your TradingView script to automatically insert labels, monitors, and flow traces.

Frequently Asked Questions about pine-debugger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug Pine Script code in TradingView to find indicator logic errors?

Debug Pine Script code by inserting label-based monitors, table monitors, and calculation-flow traces to identify logic errors, anomalies, and performance bottlenecks in TradingView indicators and strategies. Enable debug mode to automatically generate these tracking elements.

How do I detect repainting issues in a Pine Script v6 strategy?

Detect repainting issues in a Pine Script strategy using built-in repainting detection tools that track historical value changes and na propagation across calculation cycles. This identifies inconsistencies between historical and real-time script behavior.

Why does my TradingView indicator return na values and how do I track them?

TradingView indicators return na values due to missing data propagation, which you can track using historical value tracking and calculation-flow tracing features. These tools monitor variable states across bars to isolate the exact origin of na outputs.

What is the best way to visualize variable values on a TradingView chart for troubleshooting?

The best way to visualize variable values for troubleshooting is by using label-based debugging and table monitors to display real-time calculation states directly on the chart. This allows you to trace calculation flows and inspect intermediate outputs visually.

Can I use this Pine Script debugger to fix performance bottlenecks in my indicator?

Yes, you can use this debugger to fix performance bottlenecks by tracing calculation flows and monitoring execution behavior within your Pine Script indicators and strategies. It identifies inefficient logic loops and anomalous processing spikes.

When should I enable debug mode in my Pine Script indicators and strategies?

Enable debug mode in Pine Script indicators when you need to insert labels, monitors, and flow traces to troubleshoot repainting, na propagation, or logic anomalies. Disable it for production runs to maintain optimal chart performance.