个股0:=C;
个股1:=REF(C,1);
个股2:=REF(C,2);
个股3:=REF(C,3);
{标指0:=
IF(STRLEFT(CODE, 2) ==00, INDEXDATA("399107",&CLOSE),
IF(STRLEFT(CODE, 2) ==60, INDEXDATA("1A0001",&CLOSE),
IF(STRLEFT(CODE, 2)==30, INDEXDATA("399102",&CLOSE),
IF(STRLEFT(CODE, 2)==68, INDEXDATA("000688",&CLOSE), 0))));
}
{ IF(CODELIKE('600'),X,Y);}
标指0:=
IF(CODELIKE('00'),"399107$C",
IF(CODELIKE('60'),"1A0001$C",
IF(CODELIKE('30'),"399102$C",
IF(CODELIKE('68'),"000688$C",0))));
标指1:=REF(标指0, 1);
标指2:=REF(标指0, 2);
标指3:=REF(标指0, 3);
界限20:20,COLORYELLOW;
一日偏离:(个股0/个股1-标指0/标指1)*100,COLORLIGRAY;
两日偏离:(个股0/个股2-标指0/标指2)*100,COLORLIBLUE;
三日偏离:(个股0/个股3-标指0/标指3)*100,COLORRED;
今异动涨幅界限:((0.2+标指0/标指3)*REF(C,3)/REF(C,1)-1)*100,COLORMAGENTA,NODRAW;
今异动股价界限:(0.2+标指0/标指3)*REF(C,3),COLORMAGENTA,NODRAW;
明涨停预计涨幅:((C*1.1/REF(C,2)-0.2)*标指2/标指0-1)*100,COLORGREEN,NODRAW;
PL2:=IF(1>0,(C/REF(C,2)-标指0/标指2)*100,(C/REF(C,1)+REF(C,1)/REF(C,2)- 标指0/标指1-标指1/标指2)*100);
PL3:=IF(1>0,(C/REF(C,3)-标指0/标指3)*100,(C/REF(C,1)+REF(C,1)/REF(C,2)+REF(C,2)/REF(C,3)- 标指0/标指1-标指1/标指2-标指2/标指3)*100);
YD:=(PL2>20 OR PL3>20);
SCYD:=(REF(COUNT(YD,3)=0,1) OR REF(COUNT(YD,2)=0,1)) AND YD;
STICKLINE(SCYD,0,5,3,0),COLORMAGENTA;
{DRAWTEXT(SCYD,7,'①'),COLORMAGENTA;}
ECYD1:=(LAST(SCYD,3,2) AND PL2>20);
ECYD2:=(LAST(SCYD,4,3) AND PL3>20 AND REF(COUNT(ECYD1,2)=0,1));
ECYD:=(ECYD1 OR ECYD2);
STICKLINE(ECYD,0,10,3,0),COLORMAGENTA;
DRAWTEXT(ECYD,12,'②'),COLORMAGENTA;
SACYD1:=(LAST(ECYD,3,2) AND PL2>20);
SACYD2:=(LAST(ECYD,4,3) AND PL3>20 AND REF(COUNT(SACYD1,2)=0,1));
SACYD:=(SACYD1 OR SACYD2);
STICKLINE(SACYD,0,15,3,0),COLORYELLOW;
DRAWTEXT(SACYD,17,'③'),COLORYELLOW;
SICYD1:=(LAST(SACYD,3,2) AND PL2>20);
SICYD2:=(LAST(SACYD,4,3) AND PL3>20 AND REF(COUNT(SICYD1,2)=0,1));
SICYD:=(SICYD1 OR SICYD2);
STICKLINE(SICYD,0,20,3,0),COLORGREEN;
DRAWTEXT(SICYD,22,'④'),COLORGREEN;
WCYD1:=(LAST(SICYD,3,2) AND PL2>20);
WCYD2:=(LAST(SICYD,4,3) AND PL3>20 AND REF(COUNT(WCYD1,2)=0,1));
WCYD:=(WCYD1 OR WCYD2);
STICKLINE(WCYD,0,25,3,0),COLORGREEN;
DRAWTEXT(WCYD,27,'⑤'),COLORGREEN;
LCYD1:=(LAST(WCYD,3,2) AND PL2>20);
LCYD2:=(LAST(WCYD,4,3) AND PL3>20 AND REF(COUNT(LCYD1,2)=0,1));
LCYD:=(LCYD1 OR LCYD2);
STICKLINE(LCYD,0,30,3,0),COLORGREEN;
DRAWTEXT(LCYD,32,'⑥'),COLORGREEN;