&从另一个指示器应用设置(例如颜色)
我正在创建多个指标 - 理想情况下可以一起使用。
由于许多级别共享相同的着色,所以我想知道我是否可以
- 在“ og open”行的“主”指示器中指定颜色
- 上重新使用相同的颜色
,并在第二个(“ sub”)指示器i i在文档中找不到它。 有提示吗?
I am creating multiple indicators - ideally to be used together.
Since many levels share the same coloring, I was wondering if I can
- get the color a user may specify in the "main" indicator for e.g. "open" line
- and re-use the same color on the second ("sub") indicator
I couldnt find it in the docs. Any hint?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能从另一个指示器上的一个指示器中使用
输入
。在某些情况下,您可以使用指示器函数上的指示器。话虽如此,您可以使用在Pine脚本中。虽然您无法在两个指标之间获得输入,但使用库可以与所有导入该库的指标具有相同的输入。
如果您愿意,您甚至可以执行可选择的调色板:
而不是将库导入您的代码:
You can't use
input
from one indicator on another indicator. In some cases, you can use indicator output to another indicator using indicator on indicator function.After saying that, you can do nice things with libraries in pine script. While you can't get inputs between two indicators, with libraries you can have the same input to all the indicators that imports this library.
You can even do a choosable color palette if you wish:
And than import the library to your code: