Never thought of using it for stock analysis- wonder how accurate it might be?
Like any code, you will test and debug it...so when you're done, it's perfect.
As an aside, I had a beatch of a time downloading minute-by-minute prices from my trading platform (ThinkorSwim) and used AI to help me navigate that process.
As you probably know, AI's responses are only as good as your questions are clear and concise. I'm getting much better with my questions now that I'm getting some experience.