DRAWGBK(1,COLORRGB(100,100,100),COLORRGB(50,50,50),0);
换手率:IF(CAPITAL=0,VOL/SUM(VOL,100)*100,VOL/FINANCE(7)),LINETHICK0,PRECISION2,colorFF00;
涨跌幅:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,LINETHICK0,PRECISION2,color9900;
VAR1:=WINNER(CLOSE*0.9)*100;
VAR2:=VOL/CAPITAL*100;
VAR3:=VAR1-VAR2;
VAR4:=VAR3<1;
VAR5:=VAR3>=1 AND VAR3<5;
VAR6:=VAR3>=5 AND VAR3<10;
VAR7:=VAR3>=10 AND VAR3<25;
VAR8:=VAR3>=25;
PL:=(MA(CLOSE,5)>MA(CLOSE,65) AND MA(CLOSE,10)>MA(CLOSE,65) AND MA(CLOSE,30)>MA(CLOSE,65) AND MA(CLOSE,5)<MA(CLOSE,30))*0.3;
PL1:=(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)<0.1;
PL2:=(CLOSE-MA(CLOSE,250))/MA(CLOSE,250)<0.3;
PL3:=(PL1=1 AND PL2=1)*0.2;
PL4:=EMA(CLOSE,12)-EMA(CLOSE,26);
PL5:=EMA(PL4,9);
PL6:=(COUNT(PL4<PL5,10))=10;
PLA:=IF(PL=0.3 AND PL6 AND PL3=0.2,0.8,0);
关注区:=IF(COUNT(PLA=0.8,55),18,-12);
YBH1:=EMA(CLOSE,7)-EMA(CLOSE,19);
YBH2:=EMA(YBH1,9);
YB:=YBH1>=YBH2;
YH:=YBH1>=0;
SZ:=(CLOSE*3+HIGH+LOW+OPEN)/6;
SK:=EMA(SZ,13)-EMA(SZ,73);
SD:=EMA(SK,2);
买点:=(CROSS(SK,SD) AND SK<-0.04 AND CLOSE-REF(CLOSE,1)/REF(CLOSE,1)>=0.03 OR CROSS(SK,SD) AND SK<=-0.14 OR CROSS(SK,SD) AND SK<=0.05 AND (VOL/MA(VOL,5)>2 OR CLOSE/REF(CLOSE,1)>0.035))*1.2;
选股:=关注区 AND 买点;
AA:=REF(HHV(HIGH,N),N)=HHV(HHV(HIGH,N),2*N+1);
BB:=BACKSET(AA,N+1);
CC:=FILTER(BB,N) AND HHV(HIGH,N)=HHV(HHV(HIGH,N),N+1);
DD:=ISLASTBAR AND REF(CC,BARSLAST(CC));
EE:=BACKSET(DD,BARSLAST(CC)+1);
FF:=BACKSET(EE>REF(EE,1),REF(BARSLAST(CC),1)+2);
X1:=BARSLAST(EE>REF(EE,1));
X2:=BARSLAST(FF>REF(FF,1));
X3:=BARSLAST(FF>REF(FF,1));
X4:=BARSLAST(EE>REF(EE,1));
GG:=(REF(HHV(HIGH,N),X1)-REF(HHV(HIGH,N),X2))/(X3-X4);
Y1:=BARSLAST(EE>REF(EE,1));
Y2:=BARSLAST(EE>REF(EE,1));
阻力:=REF(HHV(HIGH,N),Y1)+Y2*GG;
ZM:=IF(CLOSE<REF(CLOSE,1),0,VOL/CAPITAL);
ZM1:=(ABS(EMA(ZM,13.3)-18))/WINNER(CLOSE)*(IF((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)<-0.04,1,0));
ZM2:=IF(FILTER(ANY(ZM1>5,5) AND CLOSE>MA(CLOSE,6) OR ANY(ZM1>100,9) AND CLOSE>MA(CLOSE,19),6),10,0);
DZM:=REF(INDEXC,1)<REF(INDEXC,2) AND REF(CLOSE,2)/REF(CLOSE,1)>1.06 AND REF(CLOSE,1)<REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND CLOSE>REF(OPEN,1) AND REF(VOL,1)<REF(VOL,2);
YM1:=HHV(HIGH,21)-CLOSE;
YM2:=HHV(HIGH,21)-LLV(LOW,21);
YM3:=100-90*YM1/YM2;
YM4:=100*(HHV(HIGH,6)-CLOSE);
YM5:=HHV(HIGH,6)-LLV(LOW,6);
YM6:=100-MA(YM4/YM5,34);
YM7:=CROSS(YM3,MA(YM6,6));
ZB1:=BARSCOUNT(CLOSE);
ZB2:=ZIG(MA(CLOSE,3),1);
ZB3:=LBOUND(ZB2);
ZB4:=REF(ZB2,1)>REF(ZB2,2) AND ZB2<REF(ZB2,1);
IF ZB1[SYSPARAM(1)]>ZB3+1 THEN
ZB5:=REFX(ZB4,1);ELSE
ZB5:=SUM(0,0);
ZB6:=IF(BARPOS>2,REF(ZB2,1)<REF(ZB2,2) AND ZB2>REF(ZB2,1),0);
IF ZB1[SYSPARAM(1)]>ZB3+1 THEN
ZB7:=REFX(ZB6,1);ELSE
ZB7:=0;
ZB8:=SUM(ZB7,0);
ZB9:=IF(ZB5>0,PEAK(MA(CLOSE,3),1,1),SYSPARAM(4));
ZB10:=IF(ZB8>0,TROUGH(MA(CLOSE,3),1,1),SYSPARAM(5));
ZB11:=IF(ZB5+ZB8<2,ZB8>ZB5,TROUGHBARS(MA(CLOSE,3),1,1)<PEAKBARS(MA(CLOSE,3),1,1));
ZB12:=IF(ZB11,(ZB9/ZB10-1)*28,0);
极弱股:IF(VAR4,-10,0),STICK,colorF08500;
弱势股:IF(VAR5,-5,0),STICK,colorFFFFD8;
转型股:IF(VAR6,5,0),STICK,color78F3F3;
强势股:IF(VAR7,10,0),STICK,colorF0C8FF;
主升浪:IF(VAR8,15,0),STICK,colorD687FF;
STICKLINE(买点,-12,20.8,7,0),colorB900;
STICKLINE(选股,-12,13.8,8,0),color89FF;
STICKLINE(CROSS(HHV(HIGH,N),阻力),-9.88,18.8,7,0),colorFF;
STICKLINE(ZM2,-0.88,10.88,8,0),color7800;
STICKLINE(DZM,-12,8,7,0),colorFF0000;
DRAWICON(YM7,1,4);
DRAWTEXT(FILTER(YM7,10),-1.68,'69.19%'),ALIGN0,colorFF;
DRAWTEXT(买点,18.88,'中买'),ALIGN0,color98FF;
DRAWTEXT(选股,-1.98,' ★ \n★'),ALIGN0,colorFF;
DRAWTEXT(买点,-1.98,'★'),ALIGN0,color16E9FF;
DRAWTEXT(CROSS(HHV(HIGH,N),阻力),-5.88,'★'),ALIGN0,colorFF00FF;
DRAWTEXT(CROSS(HHV(HIGH,N),阻力),13.88,'突94%?'),ALIGN0,colorFFFFFF;
DRAWTEXT(ZM2,6.88,' \n★'),ALIGN0,colorFFFF00;
DRAWTEXT(ZM2,8,'短67%'),ALIGN0,colorFFFF;
DRAWTEXT(DZM,-2.6,'★'),ALIGN0,colorFF00;
DRAWTEXT(DZM,-9.6,'阳包阴84%'),ALIGN0,colorFFFF;
PARTLINE(CLOSE,ZB12),color8E09;
PARTLINE(CLOSE,关注区),LINEDOT,color78E9FF;
|