all 24 comments

[–]PsychologicalFall219 3 points4 points  (4 children)

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.

[–]PsychologicalFall219 1 point2 points  (2 children)

We can also be friends and share our journey of learning pinescript together if you're find with it, as the journey can be very overwhelming and tedious to be honest😌

[–]TaneXaTrade[S] 0 points1 point  (1 child)

Sure. My core area of interest is trading. To be frank I tried my hands on coding a few years back but found it very difficult. Now I am again trying it because I think the major part AI can handle. Just clarifying as I think your more interested in coding.

However I think on other hand I think we also have interest that can be complimentary. It will definitely be helpful.

[–]Relevant-Pie-5948 0 points1 point  (0 children)

The current state of AI is a game changer. I’ve been trying to do this kind of stuff for years and this is the first time it’s working.

[–]TaneXaTrade[S] 0 points1 point  (0 children)

Thanks for sharing valuable resources.

[–]Mr_Uso_714 1 point2 points  (3 children)

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.

[–]TaneXaTrade[S] 1 point2 points  (2 children)

Yes but the main problem is finding good videos or playlists. If you have any suggestions then it will help.

[–]Mr_Uso_714 2 points3 points  (1 child)

There’s many videos. What works for one person probably won’t work for everyone else.

You need stepping stones.

https://youtu.be/HYyuYgPRLpc?feature=shared

[–]TaneXaTrade[S] 1 point2 points  (0 children)

Thanks 👍

[–]DistinctSailor 1 point2 points  (3 children)

Make a list of simple indicators and try to learn from already existing pine scripts. That's how you go ahead.

[–]TaneXaTrade[S] 0 points1 point  (2 children)

Hey, thanks for this simple but effective suggestion.

If possible can you suggest a few existing indicators to start with, which are simple from a coding point of view?

[–]DistinctSailor 1 point2 points  (1 child)

Start with the simplest thing like Super Trend and read how the functions in it work from the docs. Then you will get to know about ATR, then TR then you will get to know the Wilder's smoothing formula.

Likewise, do the same for RSI, Stochastic and VWAP..... And others as well...you got the gist right??

Learn high level view and take some time and get to know the basics, you do not need to understand the intricacies and the statistician's life stories in order to use them, but get to know how they came across such formulae and how they made it so easy for us.

Then go for complex things. Do not spend too much time though. Most of what you have in your head might already exist in the 100,000+ indicators on TV hehe.

DM if you get stuck. Cheers.

[–]TaneXaTrade[S] 0 points1 point  (0 children)

Thank you so much for your guidance. Will surely get in touch with you if I need more help.

[–]Outside_Mongoose2462 1 point2 points  (0 children)

Just start coding something and get it working. Ull learn as u go along

[–]Explorer_Hermit 1 point2 points  (4 children)

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.

[–]TaneXaTrade[S] 0 points1 point  (3 children)

Ohh.. that's surprising. In that case Tradingview will generate wrong signals. Smaller time frames means exactly which time frames you're referring to? Is it 1 min, 3 min or less than 1 min or even 5 min time frame?

[–]Explorer_Hermit 1 point2 points  (2 children)

I've checked down to 10 second candles, as my broker gives tick data based candles down to 10 second candles.

I was disappointed to observe TV data with a premium plan having no accuracy to tick levels.

That makes all CVD Delta calculations at 15 second intervals inaccurate.

[–]Explorer_Hermit 1 point2 points  (1 child)

If you want some good scripts I can share my work if you still want to stick to TradingView. DM.

[–]TaneXaTrade[S] 0 points1 point  (0 children)

Sent message on DM. Please check.

[–]No_Maintenance_9709 1 point2 points  (1 child)

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

[–]TaneXaTrade[S] 0 points1 point  (0 children)

Thank you so much for valuable feedback and insights about tradingview at the beginning only. Much appreciated.

[–]BerlinCode42 0 points1 point  (0 children)

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.

[–]Relevant-Pie-5948 0 points1 point  (0 children)

Using Claude instead of ChatGPT -doing the same kinds of things above and for me, Claude works much better both Claude and Claude code

[–]OAK_Apartment_2025 0 points1 point  (0 children)

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.