FAQ

How to change the precision for an indicator in TradingView?

Pine

How to change the precision for an indicator in TradingView?

By default indicators you add to the TradingView chart have the same precision as the underlying instrument you applying it on. Sometimes this can cause some problems: We applied cumulative percentile to XBTUDT from Bitmex. Its min tick is 0.1$, so our indicator also inherited this precision. You can see that values change but on How to change the precision for an indicator in TradingView? Read More →

How to change the precision for an indicator in TradingView? Read More »

How to add a watermark (symbol and timeframe) to the chart background in TradingView?

In TradingView it’s possible to add a watermark to your chart background. It will show the current symbol and timeframe you’re working with. It can be pretty useful to have it. It will help you and others better understand your charts and ideas. In this article, I will show you how you can add it

How to add a watermark (symbol and timeframe) to the chart background in TradingView? Read More »

How to fix “syntax error at input ‘end of line without line continuation’.” in pine script

Simple code like this won’t work for you: If you’ll add it to the chart you’ll see the following error: Syntax error at input ‘end of line without line continuation’. So what is the reason and how to fix it? It is happening because of the line wrapping rules you have in PineScript. The piece

How to fix “syntax error at input ‘end of line without line continuation’.” in pine script Read More »

How to fix it? ‘the script must have one study() or strategy() function call’

Sometimes when adding a script to the chart in TradingView you might see the following error: “Add to Chart operation failed, reason: The script must have one study() or strategy() function call”. This is happening because PineScript expects to see 1 study or strategy call in your script. Most likely you missed it when copied

How to fix it? ‘the script must have one study() or strategy() function call’ Read More »

How to fix ‘expression’ argument of security function should have no side effects

In this article, I will show you how to fix the “‘expression’ argument of security function should have no side effects” error in PineScript. Here is an example of the script that triggers that error: Error message: The issue is that when you call a function inside a “security” function you can’t plot trend line

How to fix ‘expression’ argument of security function should have no side effects Read More »