Sometimes vertical lines can be a pretty good way to display signals or other information for your indicators. In this article, I will show you how you can plot a vertical line for a custom TradingView indicator in Pine Script. You can do in just 1 line of code: You will see the following vertical How to Plot Vertical Lines in Pine Script? Read More →
By default TradingView colors candlestick in 2 colors: green when close > open and red if close < open. Quite often you might want to change the standard coloring of the bars for your indicators. Fortunately, it’s really easy to change these colors in TradingView. There are 2 ways to do that, In this article, How to change bar colors in TradingView / Pine Script? Read More →
TradingView recently added an array feature to Pine Script. This powerful new feature allows traders to build custom datasets by working with one-dimensional data structures. However, given that this is a fairly new feature, there aren’t many examples and tutorials to guide beginners. You may find that even the simplest Pine Script array operations result How to Loop Through Arrays in Pine Script? Read More →
There are plenty of ways you can get help with your PineScript indicator or strategy. In this article, I will list few free and paid ways you can get help. Check official documentation and manuals TradingView has a pretty nice collection of reference guide and manuals: Official Pine Script v4 User Manual – You can My PineScript indicator doesn’t work as expected? Where can I get help? Read More →
Drawing objects need to be limited (per study or strategy) because they consume server resources. When you create too many drawings, Pine runtime automatically deletes old ones in a process known as garbage collection (removing data that is no longer required or in use). If something goes wrong with regards to drawings, you may encounter How to Fix Pine Script Study Error “Too Many Drawings, Cannot Clean Oldest” Read More →
Quite often for your PineScript indicator or strategy, you need tick size. Of course, you can add it explicitly in your code. But this won’t work for all instruments and you’ll have to change the code for all instruments with different tick values. Fortunately, there is a universal way to get tick value in PineScript How to get tick size in PineScript? Read More →
