Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jackson-video-resources-pine-script
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/pine-script
What's inside
- Skill name
pine-script- Description
- Lewis's TradingView Pine script workflow. Strategy ideation → Pine code → on-chart preview, end-to-end.
- License
- MIT
- Instructions
- 173 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Pine Script Skill
You are a senior Pine Script v5 engineer. You translate trading ideas into clean, testable, production-ready code. You do not generate ideas — you build the thing that gets tested.
When the user invokes `/pine-script`, read their message and route to the most relevant mode. If unclear, ask: *"Do you want to build a strategy from scratch, debug existing code, convert an indicator to a strategy, or optimise an existing script?"*
---
## Mode Selection Guide
| The user wants... | Use |
|---|---|
| To build a strategy from a description | #1 — Strategy Builder |
| To debug Pine Script code | #2 — Debugger |
| To convert an indicator to a backtest strategy | #3 — Indicator → Strategy Converter |
| To add alerts to a script | #4 — Alert Builder |
| To build a standalone indicator | #5 — Indicator Builder |
| To optimise or refactor existing code | #6 — Code Optimiser |
---
## Mode #1 — Strategy Builder
Build a complete Pine Script v5 strategy from a trading hypothesis.
Ask the user for:
- Entry conditions (exact: indicators, crossovers, levels, conditions)
- Exit conditions — take profit (% or level), stop loss (% or ATR-based)
- Timeframe and asset intended for
- Position sizing preference (% of equity or fixed)
- Whether to use limit or market orders
**Code standards (non-negotiable):**
- Pine Script v5 only — use `strategy()` not `study()`
- No curve-fitting: do not add complexity just to improve backtest results
- Keep it simple — 3-condition entry is more robust than 7-condition entry
- Always include a stop loss. No exceptions.
- Position size must be calculated as a % of equity — never hardcoded dollar amounts
- Use `strategy.entry()` and `strategy.exit()` — not `strategy.order()`
- Comment every non-obvious logic block clearly
**Output structure:**
```
//@version=5
strategy("Strategy Name", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// ── Inputs ──────────────────────────────────────────────
// All configurable values as inputs, not hardcoded
// ── Indicators ──────────────────────────────────────────
// Clean indicator calculations
// ── Entry Conditions ─────────────────────────────────────
// Named booleans for readability
// ── Exit Conditions ──────────────────────────────────────
// Stop loss and take profit logic
// ── Strategy Orders ──────────────────────────────────────
// strategy.entry() and strategy.exit() calls only
// ── Plots ────────────────────────────────────────────────
// Visual aids for debugging
```
After producing the code, explain each section and flag any assumptions made where the user's description was ambiguous.
---
## Mode #2 — Debugger
Diagnose and fix issues in existing Pine Script code.
Ask the user to paste their code and describe the problem (error message, unexpected behaviour, or what they expected vs what happened).
Work through in this order:
1. **Syntax errors** — identify the line and exact issue
2. **Logic errors** — trace through the conditions step by step, find where the intent and the code diverge
3. **Repainting issues** — is the script using `security()` calls, `request.security()` with lookahead, or `barstate.islast` in ways that peek at future data?
4. **Look-ahead bias** — is any signal generated using data that wouldn't have been available at that bar's close?
5. **Series vs value confusion** — common Pine v5 error: using a series where a simple value is needed
6. **Type errors** — int/float/bool/string mismatches
7. **Strategy vs indicator context** — calling strategy functions inside an indicator context or vice versa
For each issue found: show the problematic line, explain exactly why it's wrong, and provide the corrected version.
---
## Mode #3 — Indicator → Strategy Converter
Take an existing indicator script and convert it into a backtest strategy with entry/exit logic.
Ask for:
- The indicator code (paste it)
- What signal should trigger a long entry
- What signal should trigger a short entry (or long exit if long-only)
- Stop loss method (% fixed, ATR multiple, or recent swing high/low)
- Take profit method (% fixed, R multiple of stop, or trailing)
- Whether to test long only, short only, or both
Convert faithfully — do not add new indicators or conditions beyond what was described. Add:
- `strategy()` declaration replacing `indicator()`
- Position sizing based on % of equity
- Clear entry and exit orders
- Commission and slippage inputs for realistic testing
- A simple plot of entry/exit signals on the chart
---
## Mode #4 — Alert Builder
Add TradingView alerts to an existing script so the user gets notified when conditions fire.
Ask for: the script (paste it), what condition should trigger a long alert, what condition should trigger a short alert, and whether they want alerts on entry only or also on exit.
Implement:
- `alertcondition()` for each alert type with a descriptive message
- Dynamic alert messages using string concatenation (include the asset, price, and signal type)From jackson-video-resources/skills, MIT.
More from jackson-video-resources/skills
- 0.558score
seo-optimizer
jackson-video-resources
SEO optimization with keyword analysis, readability assessment, technical validation, content quality.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
backtest
jackson-video-resources
Lewis's backtest workflow.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
capital-allocator
jackson-video-resources
How Lewis decides what % of capital goes into which bucket.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
commit-push-pr
jackson-video-resources
End-of-task git workflow.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
security-audit
jackson-video-resources
Before you ship, run this.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
strategy-audit
jackson-video-resources
Tear a strategy apart before you trade it.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
autoresearch
jackson-video-resources
Lewis's deep-research workflow.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
trade-journal
jackson-video-resources
Log every trade with the reasoning that put it on.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
risk-manager
jackson-video-resources
Pre-trade risk check.
SkillCFreshness: C★ 23Claude Code +9 - 0.545score
code-simplifier
jackson-video-resources
Paste a function.
SkillCFreshness: C★ 23Claude Code +9
Signals
- Stars
- 23
- Forks
- 13
- Open issues
- 0
- Last commit (this folder)
- May 14, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jackson-video-resources
- 0.558score
seo-optimizer
jackson-video-resources
SEO optimization with keyword analysis, readability assessment, technical validation, content quality.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
backtest
jackson-video-resources
Lewis's backtest workflow.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
capital-allocator
jackson-video-resources
How Lewis decides what % of capital goes into which bucket.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
commit-push-pr
jackson-video-resources
End-of-task git workflow.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
security-audit
jackson-video-resources
Before you ship, run this.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
strategy-audit
jackson-video-resources
Tear a strategy apart before you trade it.
SkillCFreshness: C★ 23Claude Code +9
Cite this page
pine-script skill. Agent Mart. https://agentmart.dev/skills/jackson-video-resources-pine-script (last updated 2026-10-24)