请老师将一下通达信附图公式改成选股公式。非常感谢!当先知1和先知2上穿趋势线时,进行选股!

2024-11-29 08:39:58
推荐回答(3个)
回答1:

{同时上穿选股}
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
趋势:=(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4;
先知1:=EMA(VAR1,1)*1.028;
先知2:=MA(OPEN,1)*1.028;
ERIC:CROSS(先知1,趋势) AND CROSS(先知2,趋势) ;
===================
{任意一个上穿选股}
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
趋势:=(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4;
先知1:=EMA(VAR1,1)*1.028;
先知2:=MA(OPEN,1)*1.028;
ERIC:CROSS(先知1,趋势) OR CROSS(先知2,趋势) ;

回答2:

VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
趋势:(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4;
先知1:EMA(VAR1,1)*1.028,COLORYELLOW;
先知2:MA(OPEN,1)*1.028;
VAR2:=(C+H+O+L)/4;
上轨:EMA(VAR2,20)*(1+32/1000),COLORGREEN,LINETHICK2;
下轨:EMA(VAR2,80)*(1-100/1000),COLORRED,LINETHICK2;

回答3:

不知道