主图
X_1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
B:(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*REF(X_1,15)+4*REF(X_1,16)+3*REF(X_1,17)+2*REF(X_1,18)+REF(X_1,20))/210,LINETHICK3;
D:MA(B,15),LINETHICK3;
DRAWBAND(B,RGB(200,0,0),D,RGB(0,200,0));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
板块类别:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FGBLOCK),ZHBLOCK),GNBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,板块类别),COLORWHITE;
有庄副图
X_3:=IF(PERIOD<3,35,IF(PERIOD<=5,28,IF(PERIOD<=7,21,IF(PERIOD<=8,14,IF(PERIOD<=9,7,5)))));
X_4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_5:=MAX(HIGH-LOW,MAX(HIGH-REF(CLOSE,1),REF(CLOSE,1)-LOW))/REF(CLOSE,1)*100;
X_6:=(HIGH-LOW)/REF(CLOSE,1)*100;
X_7:=VOL/REF(MA(VOL,5),1);
X_8:=VOL;
X_9:=(HIGH+LOW+CLOSE)/3;
X_10:=CLOSE>X_9;
X_11:=CLOSE<X_9;
X_12:=X_4*X_8;
X_13:=ABS(IF(X_11,X_12,0));
X_14:=IF(X_10,X_12,0);
阴线效率:=ABS(SUM(IF(X_12<0,X_12,0),7)),DOTLINE,COLOR008000;
阳线效率:=SUM(IF(X_12>0,X_12,0),7),DOTLINE,COLORRED;
X_15:=ABS(阴线效率-阳线效率);
X_16:=49;{WWW.GOODGUPIAO.COM}
X_17:=(阴线效率+阳线效率)/2;
X_18:=STDP(MAX(阴线效率,阳线效率),X_16);
X_19:=STDP(MIN(阴线效率,阳线效率),X_16);
X_20:=WMA(X_17,X_16);
X_21:=X_20+1.618*X_18;{WWW.GOODGUPIAO.COM}
X_22:=X_20-1.618*X_19;
X_23:=阳线效率>阴线效率 AND 阳线效率>=X_20;
X_24:=阴线效率>阳线效率 AND 阴线效率>=X_20;
X_25:=阳线效率>阴线效率 AND 阳线效率>X_21;
X_26:=阴线效率>阳线效率 AND 阴线效率>X_21;
X_27:=阳线效率<阴线效率 AND 阳线效率<X_22;
X_28:=阴线效率<阳线效率 AND 阴线效率<X_22;
X_29:=阳线效率>=HHV(阳线效率,100) AND 阳线效率>0;
X_30:=阴线效率>=HHV(阴线效率,100) AND 阴线效率>0;
X_31:=阳线效率<=LLV(阳线效率,100);{WWW.GOODGUPIAO.COM}
X_32:=阴线效率<=LLV(阴线效率,100);
STICKLINE(X_23,阳线效率,MAX(X_20,阴线效率),2,0),COLORRED;
STICKLINE(X_24,阴线效率,MAX(X_20,阳线效率),2,0),COLORGREEN;
STICKLINE(X_25,阳线效率,MAX(X_21,阴线效率),2,0),COLORYELLOW;
STICKLINE(X_26,阴线效率,MAX(X_21,阳线效率),2,0),COLORWHITE;
{NOTEXT0:IF(阳线效率>阴线效率,阳线效率,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT1:IF(阳线效率<阴线效率,阴线效率,DRAWNULL),COLORGREEN,LINETHICK2;}
CMA:=(COST(95)-COST(5))/((COST(95)+COST(5)))*100,NODRAW,COLORYELLOW;
ZT:=C/REF(C,1)>=1.08 AND C=H AND NOT(CODELIKE('688'));
STICKLINE(X_25 AND ZT AND CMA<20,MAX(X_21,阴线效率),MAX(X_21,阴线效率)*2,2,0),COLORGREEN;
擒庄红量副图
VOL,VOLSTICK;
股价:=VOL;
短3:=XMA(XMA(股价,3),3),LINETHICK0,COLORWHITE;
短5:=XMA(XMA(股价,5),5),LINETHICK0,COLORWHITE;
短6:=XMA(XMA(股价,6),6),LINETHICK0,COLORWHITE;
短7:=XMA(XMA(股价,8),8),LINETHICK0,COLORWHITE;
短8:=XMA(XMA(股价,10),10),LINETHICK0,COLORWHITE;
短9:=XMA(XMA(股价,12),12),LINETHICK0,COLORWHITE;
短中:=(短7+短8+短9+短3+短5+短6)/6,LINETHICK0,COLORWHITE;
短顶:=短中*1.35,LINETHICK0,COLORGREEN;
短底:=短中*0.65,LINETHICK0,COLORGREEN;
中1:=XMA(XMA(股价,16),16),LINETHICK0,COLORWHITE;
中2:=XMA(XMA(股价,19),19),LINETHICK0,COLORWHITE;
中3:=XMA(XMA(股价,22),22),LINETHICK0,COLORWHITE;
中4:=XMA(XMA(股价,25),25),LINETHICK0,COLORWHITE;
中5:=XMA(XMA(股价,28),28),LINETHICK0,COLORWHITE;
中6:=XMA(XMA(股价,31),31),LINETHICK0,COLORWHITE;
中中2:=(中1+中2+中3+中4+中5+中6)/6,LINETHICK0,COLORGREEN;
中顶2:=中中2*1.4,LINETHICK0,COLORGREEN;
中底2:=中中2*0.6,LINETHICK0,COLORGREEN;
中40:=XMA(XMA(股价,40),40),LINETHICK0;
中50:=XMA(XMA(股价,50),50),LINETHICK0;
中60:=XMA(XMA(股价,60),60),LINETHICK0;
中中3:=(中40+中50+中60)/3,LINETHICK0,COLORWHITE;
中顶3:=中中3*1.5,LINETHICK0,COLORRED;
中底3:=中中3*0.5,LINETHICK0,COLORRED;
长90:=XMA(XMA(股价,90),90),LINETHICK0,COLORWHITE;
长120:=XMA(XMA(股价,120),120),LINETHICK0,COLORWHITE;
长150:=XMA(XMA(股价,150),150),LINETHICK0,COLORWHITE;
长中:=(长90+长120+长150)/3,LINETHICK0,COLORYELLOW;
长顶:=长中*1.3,LINETHICK1,COLORWHITE;
长顶顶:=长中*1.8,LINETHICK1,COLORRED;
长底:=长中*0.5,LINETHICK1,COLORYELLOW;
MA短中:=EMA(短中,10),LINETHICK0,COLORWHITE;
MA中中2:=EMA(中中2,10),LINETHICK0,COLORGREEN;
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED;
STICKLINE(V2>=1,0,VOL,2,0),COLORYELLOW;
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:=VOL,VOLSTICK;
大底VOL:=短底<中底2 AND 中底2<中底3 AND 中底3<长底 AND MA(C,18)>=MA(C,50),LINETHICK5,COLORRED;
中底VOL:=短底<中底2 AND 中底2>中底3 AND 中底2<长底,LINETHICK2,COLORGREEN;
小底VOL:=短底<中底2 AND 中底2<中底3 AND 中底2>长底,LINETHICK1,COLORYELLOW;
STICKLINE(中中2>MA中中2,0,VOL,3,0),COLORFF00FF;{画粉柱}
STICKLINE(短中>MA短中,0,VOL,3,0),COLORRED;
STICKLINE(中中2<MA中中2,0,VOL,3,0),COLORFFFF00;
STICKLINE(V=LLV(V,55) AND 股价<长底,0,VOL,3,0),COLORYELLOW;
NOTEXT攻击量:EMA(V,60),COLORYELLOW;DRAWRECTREL(0,40,90,270,RGB(178,34,34));
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND COUNT(V>EMA(V,60),7)>=5 ,0,0.1,0,' 短期量能评定:'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND COUNT(V>EMA(V,60),7)>=5 ,0,0.1,0,' 强'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND COUNT(V>EMA(V,60),7)>=3 AND COUNT(V>EMA(V,60),7)<5,0,0.1,0,' 短期量能评定:'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND COUNT(V>EMA(V,60),7)>=3 AND COUNT(V>EMA(V,60),7)<5 ,0,0.1,0,' 中'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND COUNT(V>EMA(V,60),7)<3 ,0,0.1,0,' 短期量能评定:'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND COUNT(V>EMA(V,60),7)<3 ,0,0.1,0,' 弱'),COLORGREEN;
擒庄乘龙副图
DIF:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100);
DEA:=REF(DIF,1)>13 AND REF(DIF,1)/DIF>1.23 AND CLOSE/REF(CLOSE,1)>1.03;
KOV1:=IF(DEA AND REF(CLOSE,1)<=COST(5),28,0);
KOV2:=IF(DEA AND REF(CLOSE,1)<=COST(5),18,0);
QL1:=IF(DEA AND REF(CLOSE,1)<=COST(5),1,0);
N1:=9;Q:=20;
VAR1:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
MX1:=SMA(VAR1,10,1);
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K1:=SMA(RSV,3,1);
D1:=SMA(K1,3,1);
VAR2:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR3:=REF(VAR2,1);
VAR4:=SMA(MAX(VAR2-VAR3,0),10,1)/SMA(ABS(VAR2-VAR3),10,1)*100;
DD1:=IF(COUNT(VAR4<20,5)>=1 AND COUNT(VAR2=LLV(VAR2,5),10)>=1 AND
CLOSE>OPEN AND CLOSE>REF(OPEN,1) AND VOL>1.5*MA(VOL,5),60,0);
MAV:=(2*C+H+L)/4;
VAR5:=LLV(LOW,34);
VAR6:=HHV(HIGH,34);
SK1:=EMA((MAV-VAR5)/(VAR6-VAR5)*100,13),STICK,COLOR00FFFF LINETHICK2;
SD1:=EMA(0.667*REF(SK1,1)+0.333*SK1,2);
VAR7:=SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
WTBFW:=IF(REF(VAR7,1)<20 AND (C/REF(C,1)-1)*100>9 AND C=H,85,0);
VAR11:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR12:=REF(VAR11,1);
VAR13:=SMA(MAX(VAR11-VAR12,0),10,1)/SMA(ABS(VAR11-VAR12),10,1)*100;
VAR14:=REVERSE(VAR13)+100;
DBBY:=IF(COUNT(VAR13<=14,2),30,0);
MJ1:=IF(CROSS(VAR13,DBBY) AND VOL>1.5*MA(VOL,5),60,0);
擒庄:QL1 AND DBBY;
DRAWTEXT(擒庄,0.1,' ←擒庄'),COLORYELLOW;
擒庄2:QL1 AND DD1;
DRAWTEXT(擒庄2,0.3,' ←擒庄2'),COLORFFFFFF;
A1:=((MA(C,60)-L)/MA(C,20))*200;
B1:=((MA(C,60)-L)/MA(C,60))*200;
C1:=((MA(C,30)-L)/MA(C,60))*200;
M1:=REF(CLOSE,1);
M2:=SMA(MAX(CLOSE-M1,0),7,1)/SMA(ABS(CLOSE-M1),7,1)*100;
G1:=FILTER(REF(M2,1)<20 AND M2>REF(M2,1),5);
TU:=C/MA(C,40)<0.74;
PER1:=5;
MMA:=EMA(C,PER1);
SMMA:=EMA(MMA,PER1);
IMPETMMA:=MMA - REF(MMA,1);
IMPETSMMA:=SMMA - REF(SMMA,1);
DIVMA:= ABS(MMA - SMMA);
TDJ:=(H-L)/REF(C,1)>0.05;
AVERIMPET:= (IMPETMMA+IMPETSMMA)/2;
TDF:= POW(DIVMA,1)*POW(AVERIMPET,3);
NTDF:=TDF/HHV(ABS(TDF),PER1*3);
YUL:=COUNT(TDJ,5)>1;
QD1:=TU AND TDJ AND YUL;
QD2:=CROSS(NTDF,-0.9);
BD1:=FILTER((G1 AND C1>20 OR C>REF(C,1)) AND REF(QD1,1),10);
XX1:=FILTER(REF(QD1,1) AND (QD2 OR C>REF(C,1)) AND "MACD.MACD">-1.5,10);
YD1:=COUNT(XX1,13)>=1 AND BD1;
有龙1:DBBY AND DD1;
DRAWTEXT(有龙1,0.5,' ←有龙1'),COLORGREEN;
有龙2:DBBY AND YD1;
DRAWTEXT(有龙2,0.7,' ←有龙2'),COLORFFFF00;
Z_1:=VOL/CAPITAL*100<11 OR REF(VOL/CAPITAL*100,1)>6 AND VOL/CAPITAL*100/REF(VOL/CAPITAL*100,1)<1.99 OR VOL/CAPITAL<REF(HHV(VOL/CAPITAL,90),1);
Z_2:=CLOSE/REF(CLOSE,1)>1.03 AND CLOSE/HHV(HIGH,34)<1 AND NOT(CLOSE<OPEN);
Z_3:=MAX(FORCAST(COST(24)/LOW,3),SMA(COST(24)/LOW,3,1))>1.3;
ZDD:=Z_1 AND Z_2 AND Z_3 ;
VAR1G:=(((CLOSE/MA(CLOSE,40))*100)<78);
VAR2G:=(((CLOSE/MA(CLOSE,60))*100)<74);
VAR3G:=(HIGH>(LOW*1.051));
VAR4G:=(VAR3G AND (COUNT(VAR3G,5) > 1));
VARAA:=IF((VAR4G AND (VAR1G OR VAR2G)),2,0);
VARBB:=C/REF(C,25)<=1.1;
VARCC:=(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15;
CPX:=SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1);
VARV5:=SMA(CPX,2,1);
CPXCD:=CPX>REF(CPX,1) AND REF(CPX,1)<REF(CPX,2) AND CPX<23;
JPD:=VARAA AND VARBB AND VARCC AND CPXCD;
DAD:=ZDD OR JPD;
乘龙:DBBY AND DAD;
DRAWTEXT(乘龙,0.9,' ←乘龙'),COLORRED;