avatar of belove1100 belove1100
关注 私信
0
关注
0
关注者

新手求教,EMA指标只能计算K线的EMA吗,不能计算其他值的ema吗?

创建于: 2021-01-27 10:38:42, 更新于:
comments   2
hits   868

var2:=LLV(LOW,10); var3:=HHV(HIGH,25); 动力线:= EMA((CLOSE-var2)/(var3-var2)*4,4); 麦语言里是这样写的 到python里应该怎么写,刚学的不会,请指教。 翻各种资料我自己瞎写的,但是没法用: close1 = bar_arr[-2][‘Close’]
hh25 = TA.Highest(bar_arr, 25, ‘High’) ll10 = TA.Lowest(bar_arr, 10, ‘Low’) dong = (close1-ll10)/(hh25-ll10)*4 if dong and len(dong) > 4: ema = TA.EMA(dong, 4) Log(ema) 希望有路过的大神帮我一下

相关推荐
全部留言
avatar of 小草
小草
需要自己传入一个数组,建议学习一下js或python. 可以跟着https://study.163.com/course/courseMain.htm?courseId=1006074239&share=2&shareId=400000000602076 学习 大概2-3周能入门
2021-01-27 11:23:52
avatar of belove1100
belove1100
好的 谢谢 我从基础慢慢学吧
2021-01-27 11:36:28