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L,34);{}
DRAWBAND(0.5*(HH9-LL9)+LL9,RGB(60,80,84),0.25*(HH9-LL9)+LL9,DRAWNULL);
DRAWBAND(IF(ZTJ34>=(HHV(H,34)+LLV(L,34))/2,(HH9+LL9)/2,DRAWNULL),RGB(80,55,84),IF(ZTJ34>=(HHV(H,34)+LLV(L,34))/2,0.25*(HH9-LL9)+LL9,DRAWNULL),DRAWNULL);
XXX_101:=ZTJ9;
XXX_102:=ZTD9;
STICKLINE(C
STICKLINE(C>=O,C,O,3.2,1),COLOR0000FF;
STICKLINE(ZTK9
STICKLINE(ZTK9
STICKLINE(ZTJ9>=ZTJE,C,O,3.2,0),COLOR225599;
STICKLINE(ZTJ9>=ZTJE,C,O,1.5,0),COLOR2255AA;
STICKLINE(ZTJ9>=ZTJE,C,O,0.4,0),COLOR2255BB;
STICKLINE(ZTJ9>=ZTJE AND XXX_101>=XXX_102,C,O,3.2,0),COLOR000077;
STICKLINE(ZTJ9>=ZTJE AND XXX_101>=XXX_102,C,O,1.5,0),COLOR000088;
STICKLINE(ZTJ9>=ZTJE AND XXX_101>=XXX_102,C,O,0.4,0),COLOR000099;
STICKLINE(ZTJ9
STICKLINE(ZTJ9
STICKLINE(ZTJ9
STICKLINE(ZTK9>=YY45,MAX(C,O),(C+O)/2,3.2,0),COLOR770088;
STICKLINE(ZTK9>=YY45,MAX(C,O),(C+O)/2,1.5,0),COLOR880099;
STICKLINE(ZTK9>=YY45,MAX(C,O),(C+O)/2,0.4,0),COLOR9900AA;
STICKLINE(ZTK9>=YY65,MAX(C,O),(C+O)/2,3.2,0),COLOR0000DD;
STICKLINE(ZTK9>=YY65,MAX(C,O),(C+O)/2,1.5,0),COLOR0000EE;
STICKLINE(ZTK9>=YY65,MAX(C,O),(C+O)/2,0.4,0),COLOR0000FF;
STICKLINE(ZTK9>=YY78,MAX(C,O),(C+O)/2,3.2,0),COLORFF0060;
STICKLINE(ZTK9>=YY78,MAX(C,O),(C+O)/2,1.5,0),COLORFF0070;
STICKLINE(ZTK9>=YY78,MAX(C,O),(C+O)/2,0.4,0),COLORFF0080;
STICKLINE(ZTK9>=YY85,MAX(C,O),(C+O)/2,3.2,0),COLOR00BBCC;
STICKLINE(ZTK9>=YY85,MAX(C,O),(C+O)/2,1.5,0),COLOR00CCDD;
STICKLINE(ZTK9>=YY85,MAX(C,O),(C+O)/2,0.4,0),COLOR00ddeE;
STICKLINE(ZTK9>=YY45 AND C
ZTJ9,COLOR888888;
MA10,COLOR00FFFF;
MA5,COLOR0000FF;
kd9死叉T:=BARSLAST(CROSS(ZTD9,ZTK9));
KD9死叉T0:=KD9死叉T+1;
KD9死叉1:=REF(KD9死叉T,KD9死叉T+1)+KD9死叉T;
KD9死叉T1:=KD9死叉1+1;
KD9死叉2:=REF(KD9死叉T1,KD9死叉T+1)+KD9死叉T;
KD9死叉T2:=KD9死叉2+1;
KD9死叉3:=REF(KD9死叉T2,KD9死叉T+1)+KD9死叉T;
KD9死叉T3:=KD9死叉3+1;
KD9金叉T:=BARSLAST(CROSS(ZTK9,ZTD9));
KD9金叉T0:=KD9金叉T+1;
KD9金叉1:=REF(KD9金叉T,KD9金叉T+1)+KD9金叉T;
KD9金叉T1:=KD9金叉1+1;
KD9金叉2:=REF(KD9金叉T1,KD9金叉T+1)+KD9金叉T;
KD9金叉T2:=KD9金叉2+1;
KD9金叉3:=REF(KD9金叉T2,KD9金叉T+1)+KD9金叉T;
KD9金叉T3:=KD9金叉3+1;
DBX:=IF(ZTK9>=ZTD9,LLV(L,KD9死叉T0),DRAWNULL),COLORFF0000;
DBX2:=IF(ZTK9>=ZTD9,LLV(L,KD9死叉T1),DRAWNULL),COLOR00FFFF;
KD9底背离:=CROSS(K,D) AND DBX>DBX2;
J高风险:=(HHV(J,7)>=109.5 AND J>100 AND ((K>78 AND KZ34<0.6) OR (K>84 AND KZ34>0.8))) OR (JCJ>4 AND K>78);
DRAWICON(J高风险,ZTJ9,2);
明天新低:=CROSS(ZTD9,ZTK9) AND C
跟庄介入:=CROSS(ZTJ9,YY50) AND ZTJ9>MA(C,5) AND (MA(C,5)/REF(MA(C,5),1)-1)*100>0.1 AND ZTJ9>REF(ZTJ9,1) AND (MAX(C,O)+H)/2>YY50 AND O/LLV(L,5)<1.2 AND COUNT(MIN(C,O)
DRAWICON(跟庄介入,YY20,29);
DRAWICON(跟庄介入 AND ZTJ34>=(HHV(H,34)+LLV(L,34))/2,YY20,30);
k线哥:=跟庄介入 AND COUNT(J<-10,7)>0;
DRAWTEXT(K线哥,H*1.015,'↙K线哥'),COLORFFFFFF;
K线哥TJ2:=CROSS(C,(HHV(H,9)+LLV(L,9))/2) AND C>MA(C,5) AND ZTJ9>MA(C,5);
K线哥TJ1:=CROSS(ZTJ9,ZTJE);
K线哥TJ:=K线哥TJ1 AND LLV(ZTJ9,5)>REF(LLV(ZTJ9,5),BARSLAST(REF(K线哥TJ1,1))) AND LLV(MIN(C,O),5)*1.002>REF(LLV(L,5),BARSLAST(REF(K线哥TJ1,1))) AND
REF(LLV(kdj.J,6),BARSLAST(REF(K线哥TJ1,1)))<-9.9;
DRAWTEXT(COUNT(K线哥TJ,6)>0 AND K线哥TJ2,0.2*(HH9-LL9)+LL9,'↖K线哥'),COLOR00FFFF;
乌云ZT:=(O-REF(H,1))/REF(H,1)*100>0;
乌云实体:=(MAX(C,O)-MIN(C,O))/MIN(C,O)*100>2 AND C
上十字星:=(H-L)/Abs(C-O)>3 AND H>MAX(C,O) AND H>REF(H,1);
见顶K线:=(上十字星 OR 乌云盖顶) AND HHKB/LLKB>1.49 AND (H=HHV(H,3) OR HHV(MAX(C,O),3)=MAX(C,O));
顶背迹象:=HHV(H,BARSLAST(CROSS(K,50))+1)>K AND HHV(H,BARSLAST(CROSS(K,50))+1)=H AND COUNT(K>78,7)>0;
随时逃:=见顶K线 AND ((COUNT(J>100,5)>0 OR COUNT(K>84,5)>0) OR 顶背迹象);
DRAWTEXT(随时逃,H*1.015,'↙随时逃'),COLOR00FF00;