ZT:=IF(CODELIKE('68') OR CODELIKE('30'),ZTPRICE(REF(C,1),0.2),IF(CODELIKE('8'),ZTPRICE(REF(C,1),0.3),IF((NAMELIKE('ST') OR NAMELIKE('*')),ZTPRICE(REF(C,1),0.05),ZTPRICE(REF(C,1),0.1))));
STICKLINE(C=ZT OR (C=H AND C/REF(C,1)>1.0985),O,C,0.8,0),COLORYELLOW;
TS:=BARSCOUNT(CLOSE)>=20;
短1:=EMA((3*CLOSE+HIGH+LOW+OPEN)/6,5),COLOR0080FF,LINETHICK2;
短2:=HHV(短1,5),LINETHICK2,COLORGREEN;
短3:=短1-(短2-短1),LINETHICK2,COLORRED;
短4:=IF(短2>短1,短1-(短2-短1),DRAWNULL),LINETHICK2,COLORYELLOW;
長1:=EMA((3*CLOSE+HIGH+LOW+OPEN)/6,20),COLORBLUE,LINETHICK2;
長2:=HHV(長1,5),LINETHICK2,COLORGREEN;
長3:=長1-(長2-長1),LINETHICK2,COLORRED;
長4:=IF(長2>長1,長1-(長2-長1),DRAWNULL),LINETHICK2,COLORYELLOW;
中1:=EMA((3*CLOSE+HIGH+LOW+OPEN)/6,10),COLORFFFF00,LINETHICK2;
中2:=HHV(中1,5),LINETHICK2,COLORGREEN;
中3:=中1-(中2-中1),LINETHICK2,COLORRED;
中4:=IF(中2>中1,中1-(中2-中1),DRAWNULL),LINETHICK2,COLORYELLOW;
NOTEXTA1:=EMA(短1-長1,5)+長1,LINETHICK2,COLORBLUE;
NOTEXTA2:=HHV(NOTEXTA1,5),LINETHICK2,COLORGREEN;
NOTEXTA3:NOTEXTA1-(NOTEXTA2-NOTEXTA1),LINETHICK2,COLORRED;
NOTEXTA4:IF(NOTEXTA2>NOTEXTA1,NOTEXTA1-(NOTEXTA2-NOTEXTA1),DRAWNULL),LINETHICK2,COLORGREEN;
三線:=NOTEXTA2=NOTEXTA3 AND REF(NOTEXTA2,1)>REF(NOTEXTA3,1);
三線后N天內(nèi):=BARSLAST(三線) <=9;
高量過前5:=V=HHV(V,6);
買點:=FILTER(TS AND C>=O AND NOTEXTA2=NOTEXTA3 AND 三線后N天內(nèi) AND 高量過前5,9),NODRAW;
ZF:=(C/REF(C,1)-1)*100;
高開:=(O/REF(C,1)-1)*100;
S0:=DYNAINFO(15)/O/100;
開盤滿量1:=S0/REF(V,1)*100;
T1:=(EMA(O,20)-REF(EMA(O,20),1))/REF(EMA(O,20),1)*100;
T2:=REF(L,BARSLAST(CROSS(T1,0)));
火力值:=(O-T2)/T2*100;
ZB:=CODELIKE('60') OR CODELIKE('00');
ZT0:=(C/REF(C,1)-1)*100>9.8 AND H=C;
ZTS:=EVERY(ZT0,4)< 3;
XA1:=FILTER(TS AND C>=O AND NOTEXTA2=NOTEXTA3 AND 三線后N天內(nèi) AND V>=REF(V,1)*3 AND C/REF(C,1)>1.05,9),NODRAW;
MD:=C>=O AND 火力值<=20 AND REF(ZF>9.80,1) AND 高開>=2 AND 高開<=7.5 AND ZB AND ZTS AND NOTEXTA2=NOTEXTA3;
XA2:=FILTER(MD,30);
DRAWTEXT(XA1,L*0.99,'YZ吸籌'),COLORYELLOW;
DRAWTEXT(XA2,H*1.01,'主力進(jìn)場'),COLOR00FFFF;
DRAWICON(XA2,L*0.99,9);
第二買點:=BARSLAST(XA2)< 10 AND HHV(H,BARSLAST(XA2))/REF(C,BARSLAST(XA2))< 1.1 AND L< NOTEXTA3 * 1.01,NODRAW;
DRAWICON(FILTER(第二買點,10),L*0.99,9);
DRAWICON(FILTER(第二買點,10),L*0.95,9);
X1:=IF(MA(C,5)>MA(C,10),20,0);
X2:=IF(MA(C,20)>MA(C,60),10,0);
X3:=IF(KDJ.J>KDJ.K,10,0);
X4:=IF(MACD.DIF>MACD.DEA,10,0);
X5:=IF(MACD.MACD>0,10,0);
X6:=IF(V>MA(V,60),10,0);
X7:=IF(WINNER(C)>0.5,10,0);
X8:=IF(C/REF(C,1)>1.03,10,0);
XX:=X1+X2+X3+X4+X5+X6+X7+X8;
DRAWTEXT_FIX(V>O,0.8,0.86,0,STRCAT('龍鳳評分:',STRCAT(CON2STR(XX,2),' '))),COLORRED;
DRAWTEXT_FIX(C!=0,0.80,1.00,0,''),COLORYELLOW;