[英]Percentage Change function in pine-script
松树中是否有像 python 中的pct_change()一样的 function,它可以计算松树的百分比变化? 由于没有数据管理系统
pct_change()
roc(source, length)将返回 50% 的 0.5。
roc(source, length)
所以,首先,有 function ta.change ,它是当前值与一系列后面的 n 条柱值之间的差值。 其次,还有 Momentum function ta.mom ,具体是价格变化。 第三,有一个 function 变化率ta.roc ,它是归一化到价格 n 根柱线的动量。 第四,如果您愿意,您可以自己编写将 Momentum 标准化为当前价格:
nmom = 100 * ta.mom(price, n) / price
[英]Pine-Script function
[英]'tostring' function in pine-script
[英]Is there any FORCAST function available in Pine-Script?
[英]Pine-script for loop inside function
[英]Pine-script optimization
[英]Pine-script how to send alert on color change on RSI graph
[英]How to use pine-script's plotcandle () function
[英]how does the pine-script linreg function work
[英]pine-script function returns different value than expected
[英]Pine-script SECURITY function doesn't return consistent result
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.