Build TradingView Signals with Claude Code
Ship Pine v6 Indicators, Alerts, Backtests & Webhooks This Weekend
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 — 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.
What You'll Build
The $40 single-session shock and the ChartSmith identity pivot that sells the rest of the book.
Names the chartist buyer; sends the Python algo trader and the signal-shopper elsewhere.
Just enough Pine v6 to read what Claude writes back and spot the gotcha before the chart trips.
The verbatim ./docs + CLAUDE.md scaffold that ends the paste-back loop. The highest-impact chapter.
Goal, Constraint, Verification, Output: three prompts ship an indicator instead of ten tries.
Three runnable indicators, each teaching one Pine pattern Claude consistently misses.
Four strategies plus the breakeven stop-loss fill-vs-touch fix written out the way Reddit fixed it.
Wire a strategy to a public webhook and a 3-line Claude analysis, honest about the Pro+ tier wall.
Walk-forward, the silent look-ahead trap, and the 14-point lie a missing [1] offset hides.
The receipt math and the one cache toggle that turns a $38 session into $3.84.
The print-and-tape 15-row error-to-fix card with the CLAUDE.md clause that prevents each one.
Publish to TradingView's library, three monetization paths, and when Pine's limits actually matter.
Free Articles from this Book
Claude Code Pine Script Setup: Give It the Manual First
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.
from: Build TradingView Signals with Claude Code
Claude Code Token Cost: Why One Session Hit $40
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.
from: Build TradingView Signals with Claude Code
The Four-Part Prompt That Gets Claude to Write Clean Pine
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.
from: Build TradingView Signals with Claude Code
The Breakeven Stop-Loss Bug Claude Keeps Writing in Pine
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.
from: Build TradingView Signals with Claude Code
Why Your Pine Backtest Lies: the request.security Fix
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.
from: Build TradingView Signals with Claude Code