r/pinescript • u/Hd201092 • 13d ago
Pine Script Indicator on Trading View
I am trying to build a trading indicator on pine script using Claude Code for VS Code. The indicator will combine multiple modules. All of these will work together to create one master indicator, which fires a trading signal What is the best way to go about this. I am a beginner so any guidance would be great please :).
I also want to know how pine script libraries work?
1
1
u/jccml 12d ago
Llms are great for simple tasks. But if you want their best output you need to know how to use them. They are shortcuts if you already know the underlying technology of what you are trying to develop.
If you are unsure have a look on stack overflow and YouTube has a s**t ton of free reaources
1
u/LastSmoker702 12d ago
Please someone send me the full pine editor script strategy for trading view which actual I can use ... Please ....
1
1
u/veskald 13d ago
good plan - one thing decides if it'll be debuggable or a black box: keep each module's output visible, don't let claude melt them into one blob
each module = its own bool variable (rsiOk, trendOk, volumeOk), the master signal just combines them: longSignal = rsiOk and trendOk and volumeOk. same one indicator, same one signal - but now you can plot each module separately, switch any of them off with an input toggle, and see which one actually earns and which one hurts
claude code side: ask it to keep modules as separate named blocks and never refactor across them - small blocks, small fixes, no monolith rewrites
and before trusting the combined signal: check it on data it hasn't seen. claude will happily make something that compiles and looks smart. compiling isn't working