
主图
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MAQ:=MA(C,5);
趋势线:HHV(MAQ,90),LINETHICK2,COLORE66878;
辅助线:MA(C,25)+MA(C,25)*20/100,DOTLINE,COLORGREEN;
TJ1:=REF(C,3)/REF(C,4)>1.09 AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30);
TJ3:=REF(O,1)<REF(MA(C,5),1) AND O>MA(C,20) AND C>MA(C,10);
TJ4:=EVERY(MA(C,5)>MA(C,10),3) AND H/REF(C,1)>1.041 AND REF(C,1)/REF(C,2)<1.041 AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30) AND REF(O,1)>REF(MA(C,20),1)
AND REF(C,1)>REF(MA(C,10),1) AND C>MA(C,60) AND MA(C,5)>MA(C,60);
TJ5:=NOT(REF(C,1)>REF(MA(C,5),1) AND REF(C,2)>REF(MA(C,5),2));
TJXG1:=COUNT(TJ1,10) AND TJ3 AND TJ4 AND TJ5;
FZ2:=MA(C,25)+MA(C,25)*20/100;
FZ1:=HHV(MAQ,90);
FZX:=C>FZ1 OR H>FZ2;
WUJQ:=NOT(COUNT(REF(TJXG1,1),5)) AND TJXG1 AND FZX;
DRAWICON(WUJQ,L*0.95,9);
DRAWTEXT(WUJQ,L*0.91,'擒庄'),COLORYELLOW;
擒庄副图1
TJ1:=REF(C,3)/REF(C,4)>1.09 AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30);
TJ3:=REF(O,1)<REF(MA(C,5),1) AND O>MA(C,20) AND C>MA(C,10);
TJ4:=EVERY(MA(C,5)>MA(C,10),3) AND H/REF(C,1)>1.041 AND REF(C,1)/REF(C,2)<1.041 AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30) AND REF(O,1)>REF(MA(C,20),1)
AND REF(C,1)>REF(MA(C,10),1) AND C>MA(C,60) AND MA(C,5)>MA(C,60);
TJ5:=NOT(REF(C,1)>REF(MA(C,5),1) AND REF(C,2)>REF(MA(C,5),2));
TJXG1:=COUNT(TJ1,10) AND TJ3 AND TJ4 AND TJ5;
强势线:=MA(C,25)+MA(C,25)*20/100;
MAQ:=MA(C,5);
趋势线:=HHV(MAQ,90);
FZX:=C>趋势线 OR H>强势线;
TJXG:NOT(COUNT(REF(TJXG1,1),5)) AND TJXG1 AND FZX,LINETHICK2,COLORE66878;
副图2
X_1:=CLOSE<REF(CLOSE,4);
X_2:=BARSLASTCOUNT(X_1);
X_3:=COUNT(X_2=6,5)=1;
X_4:=DMA(CLOSE,VOL/SUM(VOL,34));
X_5:=DMA(CLOSE,VOL/SUM(VOL,13));
X_6:=(CLOSE-X_4)/X_4*100;
X_7:=(CLOSE-X_5)/X_5*100;
X_8:=X_7<=(-17) AND X_6<=(-25);
X_9:=X_3 AND X_8;
X_10:=MA((CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,2);
X_11:=X_10<(-20);
X_12:=X_9 AND X_11 AND CLOSE>REF(CLOSE,1)*0.91 AND CLOSE<REF(CLOSE,1) AND INDEXC<REF(INDEXC,1) AND REF(CLOSE>REF(CLOSE,1),1);
X_13:=DMA(CLOSE,VOL/MA(VOL,4)/4);
X_14:=DMA(CLOSE,VOL/MA(VOL,32)/32);
X_15:=(CLOSE-X_13)/X_13*100<(-8);
X_16:=(X_13-X_14)/X_14*100<(-21);
X_17:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>(-0.05);
X_18:=COUNT(NOT(CLOSE=OPEN),8)>=8;
X_19:=X_15 AND X_16 AND X_17 AND X_18;
X_20:=X_12 OR X_19;
XG:REF(X_20,1) AND X_20=0,LINETHICK2,COLORE66878;
副图3
C1:=MA(C,1);
C2:=MA(C,3);
C3:=MA(C,5);
C4:=MA(C,10);
C5:=MA(C,120);
A1:=MA(C1,1);
A2:=MA(C2,3);
A3:=MA(C3,6);
A4:=MA(C4,8);
A5:=MA(C4,120);
STICKLINE(C1,0,5,8,0),COLOR667700;
STICKLINE(C1,0.4,4.6,8,0),COLOR663300;
STICKLINE(A2<C2,1.5,3.5,0.5,0),COLORRED;
STICKLINE(A2>C2 AND A3<C3,1.5,3.5,0.5,0),COLORGREEN;
STICKLINE(A2<C2 AND A3>C3,1.5,3.5,0.5,0),COLORYELLOW;
STICKLINE(A3<C3,2,3,4,0),COLORRED;
STICKLINE(A5>C5,2.4,2.6,4,0),COLORGREEN;
STICKLINE(A5>C5,2.48,2.52,4,0),COLOR663300;
STICKLINE(A5<C5,2.4,2.6,4,0),COLORRED;
STICKLINE(A5<C5,2.49,2.51,4,0),COLORYELLOW;