N:=13;
疯狂牛股:CAPITAL/1000000,NODRAW,COLORFF9933;
技术分析选股:FINANCE(33),NODRAW,COLORFF9933;
牛股特征:FINANCE(34),NODRAW,COLORFF9933;
CCCDD1:=VOL/CAPITAL;
CCCDD2:=(WINNER(C)-WINNER(O))>=0.15 AND CCCDD1<=0.04;
CCCDD3:IF(CCCDD2,(WINNER(C)-WINNER(O))*100,0),STICK,COLOR6EA4FF;
DDD1:=(C-REF(C,1))/REF(C,1);
DDD2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
DDDD1:=EMA(SUM(DDD1,20),5);
DDDD2:=EMA(SUM(DDD2,20),5);
DDD3:=(DDDD1-DDDD2)>=0;
DDDD3:=(C-LLV(L,125))/(HHV(H,125)-LLV(L,125))*100;
DDD4:=SMA(DDDD3,72,1);
DDD5:=SMA(DDD4,34,1);
DDDD4:=3*DDD4-2*DDD5;
DDDD5:=(DDDD4-REF(DDDD4,1))>=0;
DDDD6:=(MA(C,5)-REF(MA(C,5),1))>=0;
DDDD7:=(MA(C,10)-REF(MA(C,10),1))>=0;
DDDD3DDDD2:IF(DDDD6 AND DDDD7 AND DDDD5 AND DDDD3,4,0),COLORFF99FF;
DDD6:=(2*C+H+L)/4;
DDD7:=LLV(L,N);
DDD8:=HHV(H,N);
DDDD0:=EMA((DDD6-DDD7)/(DDD8-DDD7)*100,13)-50,LINETHICK0,COLORRED;
DDDD9:EMA(0.618*REF(DDDD0,1)+0.382*DDDD0,3),COLORYELLOW,LINETHICK1;
DDDD05:0,COLORCYAN;
DRAWICON(DDDD0>=DDDD9 AND DDDD6 AND DDDD7 AND DDDD5,DDDD9,1);
DDDD08:=IF(DDDD0>=DDDD9 AND DDDD6 AND DDDD7 AND DDDD5 AND DDDD9<0,1,0);
DDDD8:IF(DDDD08=1 AND COUNT(DDDD08=1,5)=1,8,0),COLORCYAN,LINETHICK1;
DRAWTEXT(DDDD8=8,DDDD9,'←DDDD8'),COLORWHITE;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
DDDD01:=MA(BIAS,3);
DDDD02:STICKLINE(DDDD01<-6 AND DDDD01>=-12,-6,0,2,1 ),COLOR33FFCC;
DDDD03:IF(DDDD01<-12 AND DDDD01>=-18,-12,0),COLOR33CCCC,STICK;
STICKLINE(DDDD01<-12 AND DDDD01>=-18,-12,0,2,0) ,COLOR33CCCC;
DDD02:IF(DDDD01<-18,-18,0),COLOR3399CC,STICK;
STICKLINE(DDDD01<-18,-18,0,2,0) ,COLOR3399CC;
DDDD09:IF(DDDD8=8 AND COUNT(DDDD01<-12,10)>=1,10,0),NODRAW,COLORRED;
DRAWTEXT(DDDD09=10,10,'←DDDD09'),COLORRED;
STICKLINE(DDDD09=10,10,0,5,1),COLORRED;
IF(DDDD6 AND DDDD7 AND DDDD5,0,DRAWNULL),COLORCYAN,LINETHICK3;
IF(DDDD0>DDDD9 AND DDDD0>=REF(DDDD0,1),DDDD0,DRAWNULL),COLORRED,LINETHICK2;
IF(DDDD0>DDDD9 AND DDDD0<REF(DDDD0,1),DDDD0,DRAWNULL),COLORWHITE,LINETHICK2;
IF(DDDD0>=DDDD9,DDDD9,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(DDDD0<DDDD9,DDDD9,DRAWNULL),COLORCYAN,LINETHICK1;