Values plotted by Pine scripts can be displayed in four distinct places: Next to the script’s name (controlled by the Indicator Values checkbox in the Chart settings/Status Line tab). In the script’s pane, whether your script is a chart overlay or in a separate pane. Usually this error occurs in version 1 pine scripts, and means that code is incorrect. pine script global variable. line 103: Cannot use 'strategy.risk.allow_entry_in' in local scope. Free scripts - Simple Crypto Life - Donuts This is the code I have: notPlot = -2000 var ch382= input(true, ".382") if ch382 plot( ch382? In the above example, study () and the if statement are examples of that. In these lessons I’m going to walk you through the basic knowledge required in order to begin creating your own custom TradingView indicators, trading tools and trading alerts. Welcome to my Pine Script tutorial section! Loops — Pine Script™ v5 User Manual v5 documentation Plots — Pine Script™ v5 User Manual v5 documentation If it cannot be done then I think this function is quite useless. By default, overlay is set to the false value in the pine script. If you have comments, bug reports, or ideas for new or improved things I might like to create, get in touch using the Contact Form. (e.g x = false) x_int = x ? line 103: Cannot use 'strategy.risk.allow_entry_in' in local scope. It is versatile and can plot different styles of lines, histograms, areas, columns (like volume columns), fills, circles or crosses. Pine Script User Manual 4 documentation - TradingView As this ‘cannot use in local scope’ error says, we cannot use the plot () function in a local scope. First we set the series argument of the plot () function to the values we want to plot. If overlay is set to false, then the indicator will open in a separate window on the chart in tradingview.