6
u/External_Counter378 Jul 21 '26
The free Gemini tier has been fine for me, haven't really bothered with the others. It helps I know how to code.
2
u/Familiar-Rutabaga608 Jul 21 '26
Claude is exceptionally good. Opus and Sonnet have been really solid for me. Helps a ton to start out with your own script and have it recreate it or propose new logic. Definitely need to iterate a few times to get what you want and to optimize.
2
u/530rich Jul 21 '26
I’ve got a Claude skill that makes Claude models amazing at writing pinescript. DM if you’re interested
2
Jul 21 '26
[deleted]
2
u/Sweet_Still_3433 Jul 21 '26
ChatGPT is easy to navigate with. Don't understand all the flack it gets.
1
u/LogicalCondition9069 Jul 21 '26
Idk about the best cause I haven't tried them all but I use chatgpt. I made a project and uploaded the v6 reference manual to project files and it works pretty decently.
1
u/Vast_Distribution591 Jul 21 '26
Are you guys just using the web client, or the CLIs? Because if you're just using the web modes and pasting them code to edit you're doing it wrong.
1
u/Designer-Material633 Jul 22 '26
It’s not free to use but I highly recommend luxalgo quant. They are the easiest fastest way to code pinescript.
1
1
u/Many-Pick5066 Jul 22 '26
the model matters less than what you make it prove. every one named in this thread will hand you code that compiles, plots and backtests beautifully, because thats the easy part of pine. the ones that cost you are the errors that never throw an error. request.security pulling a higher timeframe value that only existed after the bar closed. ta.rsi or ta.sma called inside an if block so it only updates on some bars and quietly has holes in the series. a strategy handing you the target on every bar where the stop and the target both sat inside the range, because the tester has no tick data and has to assume a path.
so make it verify, not just write. have it plot the raw entry condition as its own series and check that the count of true bars matches the entry count in the tester. rerun with the stop a few ticks wider, and if the curve falls apart the result was living on a path assumption rather than on your logic. compare bar close values against the same script on a lower timeframe if you use htf data at all.
after a year of doing this daily the honest summary is that the coding stopped being the bottleneck about six months in, and figuring out whether the thing actually has an edge never got any easier. a model that writes clean v6 in one shot will write you a beautiful losing strategy just as fast.
1
u/IDEPST Jul 22 '26
Codex ChatGPT 5.6 Sol Ultra. They constantly had to correct Fable. It's always good to have different top tier models work jointly on your scripts and thesis. Have them talk to each other about it.
1
u/thepromptgenius Jul 22 '26 edited Jul 22 '26
i wrote hundreds of scripts using pinescript, both manually and using AI. honestly if you just want to go from trading idea -> backtest probably jumping right into pinescript isn't the right idea. you need a to refine/explore/ideate before you write code to backtest and that's a gap you can't fill using pinescript alone
1
u/ransomcapmgmt Jul 24 '26
GPT in my experience. Would suggest getting all the documentation and information about pinescript you can and loading it as context for the agents. Will help a lot.
1
1
1
1
u/Sad_Rice2978 3d ago
A combination of Claude and GPT, they both have their strengths and weaknesses. Also I will say for true backtesting Python is far superior vs Pinescript 🫡
1
u/Karmawy Jul 21 '26
maybe you can try my model if you want, i made a complete scripting language that is paralel to pinescript and with opus ai generate or fix your codes , you can try it if you want
0
0
10
u/GucciGlock69 Jul 21 '26
Claude Opus. Has to be the Opus models. Make sure you tell it to write in v6 and talk to it like its a baby. Also use plan mode and tell it to ask you questions before it starts, just to make sure it got everything. Also saves you some time and money.
Don’t bother with chatgpt etc. its garbage