如何在 pine 脚本中对变量进行求幂
抱歉,如果问题很琐碎,但我完全是松树新手。如何在 pine 脚本中对变量执行求幂? (在 R 语言中我使用 ^ 运算符)。
Sorry if the question is trivial, but I'm totally newbie in pine. How do I perform exponentiation of a variable in pine script? (in R language I use the ^ operator).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将
Math.pow()
用于数学功能函数或Math.exp()
需要计算e
提高到功率给定的数字。You can use
math.pow()
for mathematical power function ormath.exp()
when you need to calculatee
raised to the power of given number.