如何在松树脚本中计算以前蜡烛的超趋势值?
例如:
我必须提取最后3支蜡烛的超趋势值
发布于 2022-10-16 18:08:20
要计算超级趋势,请使用内置函数ta.supertrend()
。
然后使用历史参考运算符[]来访问前面的值。
[supertrend, direction] = ta.supertrend(3, 10)
supertrend_previous = supertrend[1]
https://stackoverflow.com/questions/74087545
复制相似问题