相同的背景颜色向后n条

发布于 2025-01-17 06:16:04 字数 253 浏览 1 评论 0原文

我想为我的 Traingview 图表的背景着色,例如红色,n 条向后。我该怎么做?

尝试(无论时间):

study(title="DbgRed", shorttitle="", overlay=true)
bgcolor(color.red, transp=75)

我无法在用户手册或通过谷歌搜索中找到答案。

如何为背景着色并添加 n 条的颜色。

I want to color the background of my Traingview chart, e.g. red, n bars backwards. How do I do that?

Attempts (irrespective of time):

study(title="DbgRed", shorttitle="", overlay=true)
bgcolor(color.red, transp=75)

I can't find the answer in the user manual or via Google search.

How do I color the background and add coloring of n bars.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅忆 2025-01-24 06:16:04

您可以使用 show_last 参数来跟踪 bgcolor x 条。

//@version=4
study(title="DbgRed", shorttitle="", overlay=true)
bgcolor(color.red, transp=75, show_last = 25)

干杯,祝你好运

You can use the show_last argument to trail the bgcolor by x bars.

//@version=4
study(title="DbgRed", shorttitle="", overlay=true)
bgcolor(color.red, transp=75, show_last = 25)

Cheers, and best of luck

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文