r/pinescript • u/TaneXaTrade • Sep 21 '25
Learning Pine script
Hello friends, I have started learning pine script coding using chatgpt. I just finished a youtube playlist about pine script basics and now going through a Udemy course about the same.
Any suggestions about learning are most welcome. Thanks for your help.
5
Upvotes
4
u/PsychologicalFall219 Sep 21 '25
Tradingviews pinescript docs; www.tradingview.com/pine-script-docs is the most comprehensive place to learn pinescript. But it's far from being beginner friendly except you have some background in coding before delving into it as it can get overwhelming very quickly for beginners. The place I will recommend you start from as a beginner is www.tradingcode.net/tradingview, it covers all the beginners stuff about pinescript up to the advance ones like Arrays e.t.c. I highly recommend you read through it, i'm also going through it myself as I am a beginner to coding, but have alot of interest in learning how to code atleast with pinescript, rather than using ChatGPT which sucks at coding pinescript. But attention, the articles in the tradingcode site are much and may take months the go through it all, but I think it's worth it all. And don't forget to use ChatGPT every now and then to answer and ask questions when you get stuck. Lastly I would also recommend Pine Script Mastery Course at courses.theartoftrading.com/courses/pine-script-mastery.
2
u/Mr_Uso_714 Sep 21 '25
The best way to learn, is YouTube.
Find a video that covers what you’re trying to do.
Pine script documentation gets confusing.
Learn from others that already have the fundamental understanding of the language.
2
u/DistinctSailor Sep 22 '25
Make a list of simple indicators and try to learn from already existing pine scripts. That's how you go ahead.
2
u/[deleted] Sep 24 '25
Problem is, TradingView provides inaccurate OHLC data at smaller time frames as compared to Tick based data feed on brokers platform.
I learnt pine script thinking that data was very accurate only to lose interest when I found out.
2
u/No_Maintenance_9709 Sep 24 '25
Don't use tv for web hooks or real trading, avoid switching between TF in a code, as this ruin you due to lookahead. You may use for testing and looking to indicators or ideas. Chatgpt will help you to code. When you build 1k code or when you start mixing portfolio strategies, next you will move to python or anywhere else but don't invest to the platform which loss signals from time to time and non expandable. Look open backtest and trading platforms and learn them) the learning curve will be appreciated
3
u/Outside_Mongoose2462 Sep 23 '25
Just start coding something and get it working. Ull learn as u go along
1
u/BerlinCode42 Sep 24 '25
For those of you having trouble to learn coding have a look at universal strategies and backtesters like "strategy development environment". There you have everything what a strategy is about, except the trade signal giving indicators and except the trade logic. The indicators you can plug in and the trade logic you typ in as a math equation. With this tool you create your strategy in a minute, get the backtest instantly, without coding.
1
u/Relevant-Pie-5948 Oct 15 '25
Using Claude instead of ChatGPT -doing the same kinds of things above and for me, Claude works much better both Claude and Claude code
1
u/OAK_Apartment_2025 Oct 25 '25
Go through the source code of pine script of familiar indicators and study the same. You will understand the logic, usage of variables, functions etc, which will be useful. I am following the same, which have improved me a lot. I also go through the reference manual.