请教大师,如下公式如何改成通信达选股公式?谢谢!

2024-12-14 09:21:45
推荐回答(2个)
回答1:

{ok.测试通过}
VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5:=SMA(VAR4,13,8);
VAR8:=EMA(C,5);
VAR9:=MA((LLV(C,9))*1.1,14);
VAR10:=2*VAR9-VAR8-C*0.1;
VAR11:=IF(((VAR8-VAR10)*5>0),(POW((VAR8-VAR10)*5,2))/10,(-1*(POW((VAR8-VAR10)*(5),2)))/(10));
VAR12:=IF((VAR11>0),VAR11-0,12);
趋势:=CEILING(SMA(VAR5,13,8));
出现绿柱:FILTER(CROSS(趋势,VAR12)AND 趋势REF(C,1) OR 趋势>REF(趋势,1)AND 趋势<35 AND C>REF(C,1),5);

回答2:

“=”是条件
“=:”是赋值
“:”是输出
修改如下:
VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5:=SMA(VAR4,13,8);
VAR8:=EMA(C,5);
VAR9:=MA((LLV(C,9))*1.1,14);
VAR10:=2*VAR9-VAR8-C*0.1;
VAR11:=IF(((VAR8-VAR10)*5>0),(POW((VAR8-VAR10)*5,2))/10,(-1*(POW((VAR8-VAR10)*(5),2)))/(10));
VAR12:=IF((VAR11>0),VAR11-0,12);
趋势:=CEILING(SMA(VAR5,13,8));
出现绿柱:FILTER(CROSS(趋势,VAR12)AND 趋势REF(C,1) OR 趋势>REF(趋势,1)AND 趋势<35 AND C>REF(C,1),5);