是否可以在松树上编码体积MA?

发布于 2025-01-20 00:44:28 字数 392 浏览 1 评论 0原文

我注意到,在使用电视的内置音量指示器时,它具有内置的MA,并且我想将其用于我正在制作的指标。

还是可以将体积MA用作内置指标?

这是我尝试过的一些代码(这是完全错误的),

a = volume[0]
b = close[0]/20
vsma = volume[b]
plot(a, title='Volume', color=color.new(color.blue, 0), linewidth=2, style=plot.style_histogram)
plot(vsma, title='Volume', color=color.new(color.yellow, 70), linewidth=2, style=plot.style_line)

感谢您提前的任何答案!

I've noticed that while using TV's inbuilt Volume indicator, it has an inbuilt MA, and I'd like to use that for an indicator that I'm making.

Or is it possible to use that Volumetric MA as an inbuilt indicator?

Here's some code that I've tried(which is quite wrong)

a = volume[0]
b = close[0]/20
vsma = volume[b]
plot(a, title='Volume', color=color.new(color.blue, 0), linewidth=2, style=plot.style_histogram)
plot(vsma, title='Volume', color=color.new(color.yellow, 70), linewidth=2, style=plot.style_line)

Thanks in advance for any answers!

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

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

发布评论

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

评论(1

你的笑 2025-01-27 00:44:28

它只是ma 内置变量。

//@version=5
indicator("My script")

len = input.int(20, "Length", minval=1)
vol_ma = ta.sma(volume, len)
plot(vol_ma)

It's just ma over volume built-in variable.

//@version=5
indicator("My script")

len = input.int(20, "Length", minval=1)
vol_ma = ta.sma(volume, len)
plot(vol_ma)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文