本文介绍了Pine Script:有没有办法在数据窗口中隐藏特定的指标值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用 Pine Script 创建了一个脚本,该脚本在 TradingView 的图表上绘制了几个不同的指标.在特定场景下,一些指标不活跃并显示n/a".在数据窗口中.

I have recently created a script using Pine 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.

我知道 TradingView 允许我们隐藏所有指标值.我想自定义哪些指标值可见.这可能吗?感谢您抽出宝贵时间.

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.

推荐答案

您可以使用 display = display.none 禁用绘图可见性,但是参数的参数不能是动态的,甚至不能由 Inputs 控制,因为它是 const 形式.所以这对你来说可能没用.

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.

虽然您可以动态控制绘图值和颜色,但一旦绘制 na,n/a"将在数据窗口中显示为值,但我们无法将其隐藏.

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.

这篇关于Pine Script:有没有办法在数据窗口中隐藏特定的指标值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 22:25