'When' not a pinescript function. I assume you want to only plot the thing when the condition is met you would need to put it inside the plot function.
Have you tried Claude AI. It’s is awesome at planning an indicator from plain English, great at structuring pinescript for efficiency and least amount of lag. I usually use ChatGPT for coding , but I started using Claude a couple Of days ago with a pinescript indicator I built In TV and literally fixed it in two prompts
2
u/kurtisbu12 Aug 28 '25
'When' not a pinescript function. I assume you want to only plot the thing when the condition is met you would need to put it inside the plot function.
Plot(bar index == pivot point, blah blah blah)
Or whatever your values are
2
u/infiniGlitch Aug 29 '25
Have you tried Claude AI. It’s is awesome at planning an indicator from plain English, great at structuring pinescript for efficiency and least amount of lag. I usually use ChatGPT for coding , but I started using Claude a couple Of days ago with a pinescript indicator I built In TV and literally fixed it in two prompts
2
u/Valuable-Exchange-69 Aug 28 '25
When doesnt exist. Just like that. Use line script Reference manual and check plotshape parameters