Type/to search
0
Follow
0
Followers
Um novato gostaria de pedir um conselho: o indicador EMA pode calcular apenas a EMA da linha K e não calcular a EMA de outros valores?
Help
Created 2021-01-27 10:38:42  
 2
 1426

var2:=LLV(LOW,10);
var3:=HHV(HIGH,25);
Linha de força: = EMA (((CLOSE-var2) / ((var3-var2)*4,4);
É assim que se escreve na língua Ma.
Como escrever em python, se você não sabe, por favor, me ensine.
Eu não sei o que fazer com isso, mas eu acho que é uma coisa boa, e eu acho que é uma coisa boa.
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)
Espero que Deus me ajude.

Related Recommendations
Comment
All comments (2)

    需要自己传入一个数组,建议学习一下js或python. 可以跟着https://study.163.com/course/courseMain.htm?courseId=1006074239&share=2&shareId=400000000602076 学习
    大概2-3周能入门

    6 years ago

    好的 谢谢 我从基础慢慢学吧

    6 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)