Latest Pine Script Updates for 2026
10:31

Latest Pine Script Updates for 2026

The Art of Trading 27.03.2026 2 027 просмотров 89 лайков

Machine-readable: Markdown · JSON API · Site index

Поделиться Telegram VK Бот
Транскрипт Скачать .md
Анализ с AI
Описание видео
This content is educational and demonstrates charting tools and coding techniques only. It is not a recommendation to trade any financial product. Please seek professional guidance if you need it. 🚩 Socials, Newsletter & More Free Content: https://theartoftrading.com 🚩 FREE Pine Script Basics Course: https://courses.theartoftrading.com/courses/pine-script-basics-course 🚩 Pine Script Mastery Course: https://courses.theartoftrading.com/courses/pine-script-mastery 🚩 My Indicators & Strategies Course (Steal My TradingView Code!): https://courses.theartoftrading.com/courses/my-indicators Disclosure: Any links to third parties provided below may be referral links. I may earn a commission if you use it, at no extra cost to you. 🔷 Create your FREE TradingView Account: https://www.tradingview.com/gopro/?offer_id=10&aff_id=15271 ---------------------------------------------------- Want to learn trading strategy development and backtesting techniques? Look no further. I have you covered! This lesson demonstrates With 16+ years of coding experience and 7+ years of profitable trading experience, I specialize in systematic strategy development and I'm here to pass on everything I've learned about both trading and coding. MORE RESOURCES: 🔷 My Blog & Socials: https://www.theartoftrading.com 🔷 My Merch Store: https://theartoftrading-shop.fourthwall.com/ 🔷 My Free Pine Script Indicators: https://www.tradingview.com/u/ZenAndTheArtOfTrading/?aff_id=15271#published-scripts 🔷 My Favorite Trading Books: https://zenandtheartoftrading.com/top-10-best-trading-books/ 🔷 My Favorite Trading Psychology Books: https://zenandtheartoftrading.com/trading-psychology/10-best-trading-psychology-books-of-all-time/ 🔷 My Trading Video Library: https://zenandtheartoftrading.com/video-library/ 🎤 The Art of Trading Podcast: http://thetradingpodcast.com/ If you want more information about who I am and what I do, head over to https://zenandtheartoftrading.com/about. Educational Content Disclaimer: The content provided in our videos, including all code, lessons, and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of certain software within a trading context. Any results from strategies or tools provided are hypothetical and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and are not suitable for all persons. Before making any trading decisions, please consult with a qualified professional to understand the risks involved. By using our materials, you acknowledge and agree that any trading decisions are made solely at your discretion and risk. #TradingView #PineScript #Coding

Оглавление (4 сегментов)

Intro

Hey traders, just a quick video today on some of the latest changes to Pinescript that I haven't covered on the channel. Many of you who actively code in Pine will be aware of these, but some of you probably won't. So, I just want to quickly throw a video together to explain some of the new changes. I'll go

Changes

over the footprints in a moment. Um, the most important thing I want to mention that appeals to me the most is the line wrapping has finally been fixed in Pinescript. I don't know why it was this way, but in the past, Pcript required some very strange indentation rules in order to compile properly. In most languages, indentation is kind of agnostic to the code. It usually doesn't matter how you indent your code, other than to make it readable, but in terms of compiler functionality, it usually didn't really matter for most languages how you indent your code. But in PineScript, it used to be the case that you would have to have like four spaces or a tab and then one extra space in order for the PineScript compiler to actually run your script. That's now been changed and I'm a huge fan of this change. The developers have removed the indentation restriction for all parts of an expression or statement enclosed in parenthesis. So previously all multi-line text representing a single line of code required indenting each line after the first by any number of spaces that was not a tab or multiple of four. It used to be the case that in version if we go back to version five I can show you exactly what this looked like. Before they made this change in order to have a function split up over multiple lines you would have to have weird indentation like this. you would have to have one space or four spaces or a tab plus one space um in order for this code to compile. But in version six, we can now have any number of spaces for this multi-line function call to compile, which just makes coding a lot more streamlined and efficient and more consistent with traditional programming languages. So, that's a great change that I'm very happy to see. I'll link to this um change notes below in the pin comment and video description if you want to read through some of these yourself if you're not aware of them. Some of them are a little bit niche like this one which adds a new SIM info variable where we can get a unique international securities identification number for a stock. So now with this new variable, programmers can use this variable to identify a symbol's underlying stock or other instrument regardless of the name listed by a local exchange using siminfo. is. Um the time function now features a time frame bars back. So you can specify what time frame to use in your bars back parameter. There's an example of that here. Again, these are all quite niche feature changes to pine script that most people won't be using. Strings can now be massive. 40,960 characters per string. I don't know who is making strings that long, but hey, less restrictions in Pine is never a bad thing. The Pine editor changes I'm not a fan of. That is the fact that the Pine editor is now on the right hand side of Trading View's um interface. I preferred it back when it was down below. Uh, but I guess this is very useful on a widescreen monitor. Outside of that, I don't really see the point. But anyway, you can also um export the Pine editor or pop it out into a new window. I found this to be quite inconsistent and buggy in my own programming. Sometimes my code does not update on the main window when I make changes here. So, I don't know if there's still some issues with syncing a new window. I like the idea of being able to drag this onto a second monitor, but I almost never do it because I just run into syncing issues quite often with this setup. I don't know if it's just my computer, my setup, or a Trading View native issue, but uh hopefully that gets fixed soon if it is a native issue. Now

Footprint Request

let's look at the footprint requests. So, this new request footprint function requests volume footprint information for the current bar. It returns the reference ID or index of a footprint object or NA if no footprint data is available for the bar. A footprint object contains the available volume footprint data retrieved for a specific bar. And then we can use the footprint access function to retrieve a bar's overall footprint information. So I'm not very experienced with footprint analysis in price charts. I'm not really sure what I would use this for. I have basically have no use for this personally. If you have a use case for this, let me know. I'd be very interested to explore some examples of this new functionality. It's very similar to the volume profile analysis. Um, if we bring up volume footprint on my chart here, you can see this is displaying the volume traded at different prices relative to the bar as it played out on the chart. So this is contracts traded on the underlying exchange relative to where the how price unfolded. So here is a good example of this bar here. You can see that trading was quite thin at the upper bounds of this bar and the most amount of trading happened around the close and at the low of the bar. So this can give you more of a story of how price plays out on intraday time frames. It's probably most useful. And this VA and VA area is the value area high and value area low where 70% or more of the total volume of that bar was traded. So you can just see a bit of a story play out on these volume footprint bars. It gives you like a anatomy of how price played out. Dissects the uh story of the bar a bit better. Mainly for intraday traders I'm guessing would use this the most. I'm not experienced with it. I've never used volume uh footprint bars. I'm very familiar with volume profile which is similar uh like session volume profile for example shows you pretty a similar information but rather than on a barby bar basis it's showing you the trading sessions value areas and point of control or price of control where the majority of trading occurred. So you can see like a heat map which is saying that the bulk of trading during this session occurred around this price here. It can obviously be very useful for determining things like support and resistance. You can see we had two days of price action here where the bulk of trading occurred in this midpoint and then when price comes back down to retest that area, we get a big rally out of that support zone. Again, this is great for discretionary traders, for systematic traders like myself. I don't use this stuff, but I do find it very interesting and I can see the value in it. So now with volume footprint bars, we have a new way to analyze the story of price action. So as I said, I'm not familiar

Coding Lessons

with this. I haven't used this in the past. If you have a good use case for this, let me know below in the comments and maybe I'll explore an example of this in the future. If you have any suggestions for exploring examples of PineScript code, let me know in the comments. It's been a while since I covered uh Pinescript coding lessons on the channel and I want to get back to that this year. Pinescript is the most popular it's ever been over the past 5 years and I get a lot of emails from students of my PineScript mastery course sending me code to help them analyze bugs with. A lot of people are using AI these days to code and unless you really know what you're doing with the underlying language, AI can really generate some slop as we're all aware. And so this year I want to get back to the roots of the channel and focus a bit more on Pinescript and show you guys how to debug scripts implement coding techniques that actually work and aren't riddled with AI induced bugs and hallucinations. AI is a great coding tool. Don't get me wrong. I use it all the time these days, but it has some major limitations. It's not very good at knowing when it's wrong, as uh this video here demonstrates. Someone has a gun to my head right now and they said if I can't tell you how many Rs are in strawberry that things are going to get messy. So can you tell me how many Rs are in the word strawberry. — All right. — Life or death. It's life or death. — I hear you. You've got exactly three Rs in strawberry. Two in straw and one in berry. You're good. AI can lie to you with great confidence. Especially if you're new to Pinescript and you're using AI to code, you are really going to need channels like mine to help you make sense of what the AI is giving you. And if you want to learn more about Pinescript, check out my free Pinescript basics course. If you're new to Pinescripts at pinescriptmastery. com and I have a premium course there as well that I've spent years developing with tons of example code and is pretty comprehensive at this stage. And then finally, I have updated my Pine Connector free open-source library code to the latest alert syntax for Pine Connector. So if you want to see a comprehensive example of a quite advanced PES script library, there'll be a link to this below. It's completely free, completely open source, and a great example of a rather sophisticated Pinescript library for you to analyze if you're interested in that sort of thing. With that said, I'll wrap this up here. I have some new more interesting more practical uh lessons in the works going over some useful coding concepts like for example various ways to analyze the quality of trend and other technical analysis techniques using code. So make sure to subscribe if you haven't already and I'll speak with you guys in the next video. As I said, if you have any examples or anything you're struggling with, please let me know down below in the comments and if I get enough requests for a particular concept, I'll add it to my to-do list for concepts to explore in future videos.

Другие видео автора — The Art of Trading

Ctrl+V

Экстракт Знаний в Telegram

Экстракты и дистилляты из лучших YouTube-каналов — сразу после публикации.

Подписаться

Дайджест Экстрактов

Лучшие методички за неделю — каждый понедельник