MA60:=MA(CLOSE,60);
SZ1MA60:=(REF((C MA60),1) EVERY ((C = MA60),1));
SZ2MA60:=BARSLAST(SZ1MA60);
XD1MA60:=(REF((C MA60),1) EVERY ((C = MA60),1));
XD2MA60:=BARSLAST(XD1MA60);
SZ3MA60:=CROSS(XD2MA60,SZ2MA60);
XD3MA60:=CROSS(SZ2MA60,XD2MA60);
SZ4MA60:=( BARSLASTCOUNT (BACKSET(SZ3MA60,2)) = 1);
XD4MA60:=( BARSLASTCOUNT (BACKSET(XD3MA60,2)) = 1);
SZLMA60:= BARSLASTCOUNT ((BARSLAST(SZ4MA60) = BARSLAST(XD4MA60)));
XDLMA60:= BARSLASTCOUNT ((BARSLAST(XD4MA60) = BARSLAST(SZ4MA60)));
Z1MA60:=BARSLAST(XD4MA60);
Z2MA60:=BARSLAST(SZ4MA60);
LLMA60:=LLV(L,(Z1MA60 + 1));
HHMA60:=HHV(H,(Z2MA60 + 1));
DDDMA60:=REF(HHMA60,Z1MA60);
LL1MA60:=REF(LLMA60,Z2MA60);
LLLMA60:=REF(LL1MA60,Z1MA60);
前一波涨幅:=(((DDDMA60 - LLLMA60) / LLLMA60) * 100),NODRAW;
跌幅:=(((DDDMA60 - LLMA60) / DDDMA60) * 100),NODRAW;
M1MA60:=MA(VOL,5);
M2MA60:=MA(VOL,30);
M3MA60:=MA(VOL,120);
量空排MA60:=((((M3MA60 = M2MA60) (M2MA60 = M1MA60)) (M3MA60 = M1MA60)) XDLMA60),LINETHICK0,NODRAW;
FE0MA60:=( 前一波涨幅 =60),NODRAW;
FE1MA60:=(跌幅 = 30) AND LLMA60 LLLMA60,NODRAW;
V120MA60:=MA(V,120);
V121MA60:=(V V120MA60);
SNMA60:=((EVERY(V121MA60,3) || (V121MA60 REF(V121MA60,2))) || (V121MA60 REF(V121MA60,3)));
CDL:=BARSLAST(CROSS(MA(C,60),C));
存在下量A:=REF(COUNT(V MA(V,120),CDL-2),1) =CDL-3 AND CDL 12,NODRAW;
存在下量B:=REF(COUNT(V M3MA60,XDLMA60 ) 12,1) AND COUNT(V M3MA60,Z1MA60-1) =3,NODRAW;
机构参与MA60:=(((SNMA60 || REF(SNMA60,1)) || REF(SNMA60,2)) SZLMA60),NODRAW;
龙身条件:=EXIST (FE0MA60 ,Z2MA60 ) EXIST (FE1MA60 ,Z1MA60 ) AND (存在下量A OR 存在下量B ) EXIST (量空排MA60 ,Z1MA60 ) AND CROSS(C,MA60) AND EXIST (机构参与MA60 ,Z2MA60 );
生命线:=MA(CLOSE,20);
SZ1:=(REF((C 生命线),3) EVERY((C = 生命线),3));
SZ2:=BARSLAST(SZ1),NODRAW;
XD1:=(REF((C 生命线),3) EVERY((C = 生命线),3));
XD2:=BARSLAST(XD1);
SZ3:=CROSS(XD2,SZ2);
XD3:=CROSS(SZ2,XD2);
SZ4:=(BARSLASTCOUNT(BACKSET(SZ3,4)) = 1);
XD4:=(BARSLASTCOUNT(BACKSET(XD3,4)) = 1);
SZL:=BARSLASTCOUNT((BARSLAST(SZ4) = BARSLAST(XD4)));
Z1:=BARSLAST(XD4);
Z2:=BARSLAST(SZ4);
LL:=LLV(L,(Z1 + 1)),NODRAW;
HH:=HHV(H,(Z2 + 1)),NODRAW;
VOL120:=MA(VOL,120);
VOL1:=(VOL VOL120);
SN:=(( EVERY(VOL1,3) || (VOL1 REF(VOL1,2))) || (VOL1 REF(VOL1,3)));
SL:=(((SN || REF(SN,1)) || REF(SN,2)) SZL);
存在过上量:= EXIST(SL,Z2 ) ,NODRAW;
小盘:=CAPITAL/100 200000;
龙身:= BARSLAST(龙身条件);
BP:=(COUNT((C 生命线),BARSLAST(H=HH)) =1 );
存在5%:=(C-REF(C,1))/REF(C,1) =0.05;
强势浪:= EXIST(存在5% AND VOL1 ,Z2 ) AND 存在过上量,NODRAW;
QLYS关注:=EVERY(C HH AND EVERY(C 生命线 OR BP,BARSLAST(H=HH)),2) AND HH LL*1.15 AND HH LL*1.8 AND 小盘 AND 强势浪 AND 龙身;
关注低点:=LLV(L,BARSLAST(H=HH)) ,NODRAW;
回调幅度:=(HH-关注低点)/关注低点*100,NODRAW;
昨日收盘不破:=REF(C O AND L MA(CLOSE,20) AND C MA(CLOSE,20),1) AND V REF(V,1) AND C O AND V MA(V,120);
阳线3%:=(C-REF(C,1))/REF(C,1) =0.03;
放量阳线:=V REF(V,1) AND 阳线3% AND C
昨日放量阳线:=REF(C O,1) AND C REF(C,1) AND C O AND V MA(V,120) AND V REF(V,1);
回调完毕1:=QLYS关注 AND 放量阳线 AND COUNT(放量阳线,BARSLAST(CROSS(QLYS关注,0.5))+1)=1;
回调完毕2:=QLYS关注 AND 昨日收盘不破 AND COUNT(昨日收盘不破,BARSLAST(CROSS(QLYS关注,0.5))+1)=1;
回调完毕3:=QLYS关注 AND 昨日放量阳线 AND COUNT(昨日放量阳线,BARSLAST(CROSS(QLYS关注,0.5))+1)=1;
QLYS回调完毕: (回调完毕1 OR 回调完毕2 OR 回调完毕3 ) AND 回调幅度 8 COLORYELLOW;
DRAWTEXT(QLYS回调完毕 0,0.8,'回')COLORYELLOW;
DRAWTEXT(QLYS回调完毕 0,0.6,'调')COLORYELLOW;
DRAWTEXT(QLYS回调完毕 0,0.4,'完')COLORYELLOW;
DRAWTEXT(QLYS回调完毕 0,0.1,'毕')COLORYELLOW;