TradingView
TradingView
Jan 13, 2023 4:39 AM

Our take on AI-generated Pine Script™ Education

Tinkoff Artificial Intelligence Index iNAVMOEX

Description

The fact that GPT can generate Pine Script™ code has garnered much attention lately. While the perspective of making natural language requests to an AI to generate code is understandably attractive, it is unfortunately not something traders should use as a substitute for learning to program or finding a freelancer who will program for them if they are not interested in learning to code.

Simply put, the core of the problem lies in the fact that code generated by software like ​GPT is unreliable. Only someone who already knows Pine can analyze it and make the inevitable changes required for it to work as intended.

Would you rely on a code you cannot trust to trade your money? Those who can answer "yes" to that question are gamblers — not traders — and they most probably won't be reading this publication anyway. Because you are reading this, we assume that you are, or hope to become a trader, in which case elementary risk management would dictate that you consider GPT-generated Pine code with suspicion and not use it to make your trading decisions.

Some of the typical problems you can expect of GPT-generated Pine Script™ code are that its logic will not do what you asked it to do and that it will frequently fail to compile because its syntax is malformed, among other reasons because it mixes up different versions of Pine.

Consequently, we have decided not to allow requests to fix GPT-related code in the Q&A forums where PineCoders answer programming questions. We believe this is the best way to support our community's all-important volunteers who contribute their valuable time and knowledge to help Pine programmers facing programming challenges. Our Q&A forums are not indicator-writing services for traders who do not code in Pine. For that, traders can use our list of Trusted Pine Script™ Programmers for Hire to find a reliable freelancer they will pay to do the work for them.

Our Q&A forums for Pine Script™ programmers are:
 • Stack Overflow
 • "PineCoders Pine Script™ Q&A" room on Telegram
 • "Pine Script™ Q&A" chat on TradingView

If you are interested in learning Pine Script™, start here.

Whether you program or not, do not miss the opportunity to explore our 100,000-strong Community Scripts published by TradingViewers who so graciously share their work with our community.


Disclaimer

This publication is not intended as a dismissal of GPT-3. Originally designed to process requests to generate text, the successive versions of ​GPT have turned out to be increasingly adept at producing relatively good-quality text, so much so that it is often difficult for humans to detect that a program wrote it. See on the chart above, for example, its own text on the subject we explore in this publication, or this paper it wrote about itself. We can certainly foresee many uses for GPT-generated text, although it does bring to light challenging ethical questions. Look first. Then leap.
Comments
Mesagar
is there any proper AI for pine script?
Chaser30
true but I don't think Indian traders rely on algo based trading and also very few are interested in code based strategy also many of them may not ever heard if chatGPT unless they are student of computer science.
I appreciate this article 👍 but chaptGPT can't drag attention of Indian Traders by it's fluttery looks as they are focused on traditional way of trading.
ASISH8052
good
SANJAYPATIDAR_
Thanks 😊 Saves a lot of traders to fell into trap
Lunatic_Fringe
It is true that Gpt-3 provides bugged code of pine but it is also true that many codes in the community scripts are wrong. I am just substanting your claim "Would you rely on a code you cannot trust to trade your money? Those who can answer "yes" to that question are gamblers — not traders".
For an example- Check your own fixed volume profile and compare it with the community based fixed volume profile indicators that covers same amount of bars. You will find a lot of things far different. The POC line will be either below or above the real (tv) poc.
milpat11
ok, but if one wants to learn pine script then there is no proper course or guidance available either..
jashjacob
@milpat11, There's lot of content available online.
More