网友求助:

请帮助大智慧分时选股改成符合条件后的一次预警
1、指标:
AA:CROSS(c,REF(c,1)) AND c>DYNAINFO(3)*0.97 AND c<DYNAINFO(3)*1.015 AND c>REF(c,1)*1.001,LINETHICK0,PRECIS2;
BB:CROSS(REF(C,1),C) AND C>DYNAINFO(3)*0.97 AND C<DYNAINFO(3)*1.015 AND C<REF(C,1)*1.001,LINETHICK0,PRECIS2;
tt:=BARSCOUNT(C);
CC:=CLOSE;
zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
zz1:=BETWEEN(C/zz,1.05,0.95);
均线:IF(zz1=0,MA(C,tt),zz),COLOR00FFFF,LINETHICK0,PRECIS2;
a:=if(c>=均线,1,0);
均线上:COUNT(a=1 ,0 ),LINETHICK0,PRECIS0;
均线下:COUNT(a=0 ,0 ),LINETHICK0,PRECIS0;
均线上占:均线上/(均线上+均线下)*100,LINETHICK0,PRECIS2;
YX:均线上占=100 and DYNAINFO(7)>DYNAINFO(3)*0.97,LINETHICK0,PRECIS2;
A1:=IF(AA>=1,1,0);
上1:COUNT(A1=1 ,0 ),LINETHICK0,PRECIS2;
下1:COUNT(A1=0 ,0 ),LINETHICK0,PRECIS2;
搜AA:上1/(上1+下1)*100,LINETHICK0,PRECIS2;
A2:=IF(BB>=1,1,0);
上2:COUNT(A2=1 ,0 ),LINETHICK0,PRECIS2;
下2:COUNT(A2=0 ,0 ),LINETHICK0,PRECIS2;
搜BB:上2/(上2+下2)*100,LINETHICK0,PRECIS2;
XG:YX=1 and 搜AA>20 and 搜BB>20,COLOR0000ff;
2、
谢谢!

 

 

大智慧分时选股改成预警

 

解答如下:

AA:=CROSS(c,REF(c,1)) AND c>DYNAINFO(3)*0.97 AND c<DYNAINFO(3)*1.015 AND c>REF(c,1)*1.001;
BB:=CROSS(REF(C,1),C) AND C>DYNAINFO(3)*0.97 AND C<DYNAINFO(3)*1.015 AND C<REF(C,1)*1.001;
tt:=BARSCOUNT(C);
CC:=CLOSE;
zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
zz1:=BETWEEN(C/zz,1.05,0.95);
均线:=IF(zz1=0,MA(C,tt),zz);
a:=if(c>=均线,1,0);
均线上:=COUNT(a=1 ,0 );
均线下:=COUNT(a=0 ,0 );
均线上占:=均线上/(均线上+均线下)*100;
YX:=均线上占=100 and DYNAINFO(7)>DYNAINFO(3)*0.97;
A1:=IF(AA>=1,1,0);
上1:=COUNT(A1=1 ,0 );
下1:=COUNT(A1=0 ,0 );
搜AA:=上1/(上1+下1)*100;
A2:=IF(BB>=1,1,0);
上2:=COUNT(A2=1 ,0 );
下2:=COUNT(A2=0 ,0 );
搜BB:=上2/(上2+下2)*100;
XG:YX=1 and 搜AA>20 and 搜BB>20;