Will AI help me write and publish Pine Script® indicators?
AI large language models communicate so realistically that they can be confused with a real person. However, in reality, it turns out that AI answers some difficult kinds of questions imperfectly. Judging by our vast experience moderating Pine Script submissions, Pine is one of such blind spots.
First of all, many such models are trained just on data that existed at the time of their development. Therefore, the AI might not able to work with information that appeared later, which includes keeping up with Pine Script changes. This can cause AI-generated Pine scripts to use features from different language versions, resulting in code that often simply doesn't work.
Moreover, AI is known to hallucinate language features that Pine does not have, or try to use features from other, more general purpose programming languages. The corpus of examples available for the world's most popular programming languages like Python or JavaScript might be enough to provide the AI with ample data to generate working scripts for them, but the same is not true for Pine Script. As a result, the script can be full of Python-like features that are not available in Pine.
Additionally, even if the script that AI wrote for you does run, you still have to ensure that it does what you expect it to. Even if your request is impossible to fulfill in Pine, an AI is likely to try anyway, creating a script that doesn't work as expected.
Finally, AI has proven to be lacking when it comes to writing and editing descriptions. Don't expect AI to be able to write good, publishable code, or to write a description for the code that conforms to the House Rules, even after adding that document as context.
Thus, unfortunately, AI can generate incorrect information itself or mislead you into publishing misinformation, which can lead to negative consequences. AI-written Pine publications will most likely be moderated on account of having low quality code or bad descriptions.