Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pine Script: Is there a way to hide specific indicator values from the data window?

Tags:

pine-script

I have recently created a script that plots several different indicators on a chart in TradingView. Under specific scenarios, some of the indicators are not active and show "n/a" in the data window.

I know that TradingView allows us to hide all indicator values. I would like to customize which indicator values are visible. Is this possible? Thanks for your time.

like image 699
Arvi Avatar asked Mar 02 '23 04:03

Arvi


1 Answers

You can disable plot visibility by using display = display.none, but the parameter's argument cannot be dynamic nor even controlled by Inputs because it's of const form. So that's probably no use for you.

While you can control plot values and color dynamically, once you plot na, "n/a" will appear as the value in the Data Window and afaik we can't make it invisible.

like image 66
PineCoders-LucF Avatar answered Mar 04 '23 17:03

PineCoders-LucF