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?
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
How to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?
Comment
All comments (2)
需要自己传入一个数组,建议学习一下js或python. 可以跟着https://study.163.com/course/courseMain.htm?courseId=1006074239&share=2&shareId=400000000602076 学习
大概2-3周能入门
6 years ago
- 1
