# Build TradingView Signals with Claude Code
Ship Pine v6 Indicators, Alerts, Backtests & Webhooks This Weekend

- Price: $12.99 (Kindle ebook)
- Level: Intermediate
- Pages: 224
- Best for: Chartists who want to own the signal
- You finish with: Pine v6 indicators you build, test, alert, and rent, no Python
- Series: AI Trading Research Playbooks, book 1 of 2
- Buy on Amazon: https://amzn.to/4dRYtqP
- Web page: https://youcanbuildthings.com/books/trading-signals-claude-code

## What you get

Stop renting trading signals. Build Pine v6 TradingView indicators you can test, alert, and trade yourself, then publish the free version as proof and rent the stronger one. You get the docs folder, the CLAUDE.md rules, the four-part prompts, the breakeven-SL fix, and the alert-to-Claude webhook loop, no Python required.

A good TradingView signal can do two things: help you catch trades earlier, and become the product other traders pay to use. Most chartists are on the wrong side of both. They pay for signals instead of owning the logic, chase 93% backtests without knowing whether the strategy is real, and ask Claude Code for one Pine script only to paste errors back ten times. This is a build book for signal systems: the ./docs folder, the CLAUDE.md rules, the four-part prompts, the indicators, the strategies, the alerts, the webhook loop, the gotchas card, and the public-library publishing path. If you can read a chart but cannot write Pine from scratch, this is your weekend build book.

## Chapters

1. The Chartist Who Followed Miles and Got Stuck: The $40 single-session shock and the ChartSmith identity pivot that sells the rest of the book.
2. Who This Is For (and Who Should Buy a Different Book): Names the chartist buyer; sends the Python algo trader and the signal-shopper elsewhere.
3. Pine Script v6 Fluency in 14 Pages: Just enough Pine v6 to read what Claude writes back and spot the gotcha before the chart trips.
4. Give Claude the Manual First: The RAG Setup: The verbatim ./docs + CLAUDE.md scaffold that ends the paste-back loop. The highest-impact chapter.
5. The Four-Part Prompting Framework for Pine: Goal, Constraint, Verification, Output: three prompts ship an indicator instead of ten tries.
6. Indicators 1-3: RSI Confluence, Divergence, S/R Bounces: Three runnable indicators, each teaching one Pine pattern Claude consistently misses.
7. Strategies 4-7: Entry, Exit, Position Sizing, Multi-Timeframe: Four strategies plus the breakeven stop-loss fill-vs-touch fix written out the way Reddit fixed it.
8. Alerts and the Alert-to-Claude Loop: Wire a strategy to a public webhook and a 3-line Claude analysis, honest about the Pro+ tier wall.
9. Backtest Discipline: What Your 93% Win Rate Is Actually Telling You: Walk-forward, the silent look-ahead trap, and the 14-point lie a missing [1] offset hides.
10. The Token Budget: Build Without Burning $40 on One Indicator: The receipt math and the one cache toggle that turns a $38 session into $3.84.
11. Pine Gotchas Reference: The Bug Patterns Claude Hits: The print-and-tape 15-row error-to-fix card with the CLAUDE.md clause that prevents each one.
12. What's Next: Publish, Monetize, and Know When to Pivot: Publish to TradingView's library, three monetization paths, and when Pine's limits actually matter.

## Free guides from this book

- [Claude Code Pine Script Setup: Give It the Manual First](https://youcanbuildthings.com/articles/claude-code-pine-script-setup.md): The claude code pine script setup that stops the paste-back loop: a ./docs Pine v6 library, a 3-block CLAUDE.md, path-scoped rules, and a test prompt.
- [Claude Code Token Cost: Why One Session Hit $40](https://youcanbuildthings.com/articles/claude-code-token-cost.md): The claude code token cost math behind a $40.78 receipt: 12.8M tokens, the 90% cache toggle that makes it $3.84, and the framework that takes it to $1.83.
- [The Breakeven Stop-Loss Bug Claude Keeps Writing in Pine](https://youcanbuildthings.com/articles/pine-script-breakeven-stop-loss-bug.md): Pine script breakeven stop loss triggering early? Claude gates it on a price touch, not a confirmed fill. The var bool tp1Hit pattern that fixes it for good.
- [The Four-Part Prompt That Gets Claude to Write Clean Pine](https://youcanbuildthings.com/articles/how-to-prompt-claude-for-pine-script.md): How to prompt claude for pine script: the Goal, Constraint, Verification, Output structure that ships an RSI indicator in 3 prompts instead of a $40 loop.
- [Why Your Pine Backtest Lies: the request.security Fix](https://youcanbuildthings.com/articles/pine-script-repaint-request-security.md): Pine script request.security repaint and lookahead bias inflate a 47% strategy to 61%. The lookahead_on plus [1] offset pattern that returns the honest number.
