无法用乘数因子绘制EMA

发布于 2025-02-01 10:42:46 字数 478 浏览 1 评论 0原文

该脚本运行并显示数值,但不会绘制图表上的第二个scaled_ema变量线

//@version=5
indicator(title="5 EMA Strategy", overlay=true)

ema = ta.ema(close, 5)
scaled_ema = ema * 1.05

plot(ema, color=color.green, title="EMA")
plot(scaled_ema, color=color.orange, title="Scaled EMA")

“在此处输入图像说明”

The script runs and shows the numeric values but wont plot the second scaled_ema variable line on the chart

//@version=5
indicator(title="5 EMA Strategy", overlay=true)

ema = ta.ema(close, 5)
scaled_ema = ema * 1.05

plot(ema, color=color.green, title="EMA")
plot(scaled_ema, color=color.orange, title="Scaled EMA")

enter image description here

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

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

发布评论

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

评论(1

归属感 2025-02-08 10:42:46

它在那里,但它超出了您的图表价格范围,因此您看不到这条线路。您实际上可以看到其价值以确认。

使用自动缩放或手动调整价格尺度。

It is there but it is out of your charts price range so you don't see the line. You can actually see its value to confirm.

Either use auto scaling or adjust the price scale manually.

enter image description here

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