主图
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORGRAY;
DRAWTEXT_FIX(1,0,0.05,0,'流通市值Y:'),COLORLIRED;
DRAWNUMBER_FIX(1,0.065,0.05,0,CONST(FINANCE(40)/100000000)),COLORLIRED;
K:=EMA(C,2);
K1:=EMA(K,2);
K2:=EMA(K1,2);
K3:=EMA(K2,2);
快:=EMA(K1,3),COLORRED,LINETHICK1;
中:=EMA(K2,5),COLORYELLOW,LINETHICK1;
慢:=EMA(K3,7),COLORBLUE,LINETHICK1;
DRAWBAND(快,RGB(50,50,125),慢,RGB(0,105,0));
K线:DRAWKLINE(H,O,L,C);
限时:=1;
重心:=(2*C+H+L)/4,COLOR00FFFF,LINETHICK0;
SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70 AND 快>慢 AND ((H-O)< (O-C) AND C< O) AND REF(C,1)< REF(C,2)*1.095,H+0.07,'←洗盘'),COLORGREEN;
A1:=EMA(C,14),COLORWHITE,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100* 限时,NODRAW;
突破:=REF(EMA(C,14),1),NODRAW;
距离:=(C-突破)/突破*100,NODRAW;
入场:=IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1;
出逃:=IF(A1X< 0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1;
钱袋子:=DRAWICON(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097,L,9);
起爆点:=DRAWTEXT(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 ,L-0.18,'←起爆')COLORBLUE;
DRAWTEXT(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H,L-0.18,'打首板')COLORBLUE;
DRAWTEXT(CROSS(快,慢) AND C>=快 AND C>O AND C< REF(C,1)*1.095 ,O,'←买入')COLORRED;
DRAWICON(REF(C,1)>REF(快,1) AND REF(C,2)>REF(快,2) AND REF(C,3)>REF(快,3) AND C< 快 AND REF(快,1)>REF(慢,1) AND REF(L,1)< REF(快,1) AND O>C,H+0.1,15);
STICKLINE(CROSS(A1X,0),(C+O)/2,O,1,0),COLORRED;
STICKLINE(CROSS(0,A1X),(C+O)/2,O,1,0),COLORYELLOW;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
生命线:=MA(CLOSE,60),COLORRED,LINETHICK1;
上轨:=BOLL+2*STD(CLOSE,60);
下轨:=BOLL-2*STD(CLOSE,60);
DRAWSL(快=慢,REF(H,1),0,3,0),LINETHICK2;
ZTTJ:=(CLOSE>=ZTPRICE(REF(CLOSE,1),IF(FINANCE(3)=4,0.2,0.1)));
一板1:=ZTTJ AND NOT(REF(ZTTJ,1)) AND H=C AND FINANCE(42)>20;
一板:=C>REF(C,1)*1.095 AND C< REF(C,1)*1.118 AND C=H AND REF(C,1)< REF(C,2)*1.095;
M1:=一板 AND V< REF(V,1);
二连板1:=((C>=ZTPRICE(REF(C,1),0.1) AND FINANCE(42)>30 AND REF(C,1)=ZTPRICE(REF(C,2),0.1)) OR (C>=ZTPRICE(REF(C,1),0.2) AND FINANCE(42)>30 AND REF(C,1)=ZTPRICE(REF(C,2),0.2)) AND NOT(REF(ZTTJ,2)));
二连板:=C>REF(C,1)*1.095 AND C< REF(C,1)*1.118 AND C=H AND REF(C,1)>REF(C,2)*1.095 AND REF(C,1)< REF(C,2)*1.118 AND REF(C,1)=REF(H,1) AND REF(C,2)< REF(C,3)*1.095;
M2:=STICKLINE(二连板 AND V< REF(V,1),(O+C)/2,C,1,0),COLORRED;
三连板1:=(C>=ZTPRICE(REF(C,1),0.1) AND FINANCE(42)>20 AND REF(C,1)=ZTPRICE(REF(C,2),0.1) AND REF(C,2)=ZTPRICE(REF(C,3),0.1)) OR (C>=ZTPRICE(REF(C,1),0.2) AND FINANCE(42)>20 AND REF(C,1)=ZTPRICE(REF(C,2),0.2) AND REF(C,2)=ZTPRICE(REF(C,3),0.2));
三连板:=C>REF(C,1)*1.095 AND C< REF(C,1)*1.118 AND C=H AND REF(C,1)>REF(C,2)*1.095 AND REF(C,1)< REF(C,2)*1.118 AND REF(C,1)=REF(H,1) AND REF(C,2)>REF(C,3)*1.095 AND REF(C,2)< REF(C,3)*1.118 AND REF(C,2)=REF(H,2);
M3:=三连板 AND V< REF(V,1);
MAVOL1:=MA(V,5);
DRAWTEXT(M3 ,H*1.2,'龙妖'),COLORRED;
夹1:=C>REF(C,1)*1.095 AND REF(C,1)< REF(C,2)*1.095 AND REF(C,2)>REF(C,3)*1.095 AND REF(C,3)< REF(C,4)*1.095;
夹2:=C>REF(C,1)*1.095 AND REF(C,1)< REF(C,2)*1.095 AND REF(C,2)< REF(C,3)*1.095 AND REF(C,3)>REF(C,4)*1.095 AND REF(C,4)< REF(C,5)*1.095;
DRAWTEXT(夹2 ,L-0.09,'一进二'),COLORYELLOW;
生线:=L;
火箭:=(一板 AND C>O AND V>REF(MAVOL1,1)*2) OR (M1 AND C>O) OR (M2) OR (M3) OR(夹1) OR (夹2) OR(CROSS(A1X,0) AND C>=REF(HHV(H,7),1) AND C>REF(C,1)*1.097 AND C=H AND CROSS(快,慢) AND C>=快 AND C>O);
百万操作线:=MA(C,24);
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
KK1:=SE;
KK2:=BU;
GU1:=(CLOSE*2+HIGH+LOW)/4;
GU2:=EMA(GU1,13)-EMA(GU1,34);
GU3:=EMA(GU2,5);
GUA:=(-2)*(GU2-GU3)*3.8;
GUB:=2*(GU2-GU3)*150;
GU4:=EMA(EMA(CLOSE,9),9);
上趋势:=MA(LOW,20)*1.2;
次上趋势:=MA(LOW,20)*1.1;
次下趋势:=MA(HIGH,20)*0.9;
下趋势:=MA(HIGH,20)*0.8;
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C< 次上趋势,2,IF(C< 下趋势,0,1)));
主力控盘:=(GU1-REF(GU4,1))/REF(GU4,1)*30;
散户线:=GUA,COLORGREEN;
主力线:=GUB,COLORYELLOW,LINETHICK2;
主力买入7:=趋势强度>2 AND 主力线>REF(主力线,1) AND 主力控盘>REF(主力控盘,1) AND 主力控盘>GU4;
DRAWTEXT(主力买入7,H*1.2,'妖股'),COLORRED;
主力买入5:= 趋势强度>2.1 AND 主力控盘>REF(主力控盘,1) AND KK2<=REF(KK2,1);
DRAWICON(主力买入5,H*1.1,30);
副图1
N:=38;
STICKLINE(CLOSE,0,10,4,1),COLORGRAY;
STICKLINE(CLOSE,0,9,4,1),COLORGRAY;
STICKLINE(CLOSE,0,8,4,1),COLORGRAY;
STICKLINE(CLOSE,0,7,4,1),COLORGRAY;
STICKLINE(CLOSE,0,6,4,1),COLORGRAY;
STICKLINE(CLOSE,0,5,4,1),COLORGRAY;
STICKLINE(CLOSE,0,4,4,1),COLORGRAY;
STICKLINE(CLOSE,0,3,4,1),COLORGRAY;
STICKLINE(CLOSE,0,2,4,1),COLORGRAY;
STICKLINE(CLOSE,0,1,4,1),COLORGRAY;
X_1:=MA(LOW+(HIGH-LOW)/2,25)*1.15;
X_2:=MA(LOW+(HIGH-LOW)/2,25)*0.95;
X_3:=(X_1+X_2)/2;
X_4:=(MA(CLOSE,5)+MA(OPEN,5))/2*1.06;
X_5:=(MA(CLOSE,5)+MA(OPEN,5))/2*0.98;
X_6:=(X_4+X_5)/2;
X_7:=X_4>X_2;
X_8:=X_4>X_3;
X_9:=X_4>X_1;
X_10:=X_6>X_2;
X_11:=X_6>X_3;
X_12:=X_6>X_1;
X_13:=X_5>X_2;
X_14:=X_5>X_3;
X_15:=X_5>X_1;
X_16:=X_7+X_8+X_9+X_10+X_11+X_12+X_13+X_14+X_15;
5;
2;
DRAWICON(X_16>8,9.5,41);
DRAWICON(X_16>7,8.5,41);
DRAWICON(X_16>6,7.5,41);
DRAWICON(X_16>5,6.5,41);
DRAWICON(X_16>4,5.5,38);
DRAWICON(X_16>3,4.5,41);
DRAWICON(X_16>2,3.5,41);
DRAWICON(X_16>1,2.5,41);
DRAWICON(X_16>0,1.5,41);
副图2
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛熊线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8 *REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17) +2*REF(MID,18)+REF(MID,20))/210,COLORRED;
上趋势:=MA(LOW,20)*1.13;
次上趋势:=MA(LOW,20)*1.03;
次下趋势:=MA(HIGH,20)*0.9;
下趋势:=MA(HIGH,20)*0.8;
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C< 次上趋势,2,IF(C< 下趋势,0,1)));
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
百万操作线:=MA(C,24);
GU1:=(CLOSE*2+HIGH+LOW)/4;
GU2:=EMA(GU1,13)-EMA(GU1,34);
GU3:=EMA(GU2,5);
GUA:=(-2)*(GU2-GU3)*3.8;
GUB:=2*(GU2-GU3)*3.8;
STICKLINE(GUB>0,0,GUB*10,3.2,4),COLORRED;
STICKLINE(GUB< 0,0,GUB*10,3.2,4),COLORGREEN;
GU4:EMA(EMA(CLOSE,9),9)COLORRED;
主力控盘:(GU1-REF(GU4,1))/REF(GU4,1)*30;
A10:=CROSS(主力控盘,0);
无庄控盘:=IF(主力控盘< 0,主力控盘,0),COLORYELLOW,NODRAW;
开始控盘:=IF(A10,15,0),LINETHICK3,COLORMAGENTA;
有庄控盘:=IF(主力控盘>REF(主力控盘,1) AND 主力控盘>0,主力控盘,0),COLORRED,NODRAW;
GU5:=100*WINNER(CLOSE*0.95);
高度控盘:IF(GU5>50 AND COST(80)< CLOSE AND 主力控盘>0,主力控盘,0),COLORFF00FF,NODRAW;
散户线:=GUA,COLORGREEN;
主力线:=GUB,COLORYELLOW,LINETHICK2;
GUC:=CROSS(主力线,散户线),COLORMAGENTA;
建仓:=IF(GUC,4,0),LINETHICK1,COLORMAGENTA;
一飞冲天:=EMA(COST(80),13);
启动:= CROSS(主力线,0)AND 有庄控盘>0.5 AND REF(有庄控盘,1)>0.01 AND CROSS(C,次上趋势*0.98),COLORRED;
主力出货:IF(主力控盘< REF(主力控盘,1) AND 主力控盘>0,主力控盘,0),COLORCYAN,NODRAW;
清仓:=CROSS(散户线,主力线),COLORGREEN;
STICKLINE(主力控盘< 0,主力控盘,0,2.8,0),COLOR00AAFF;
STICKLINE(主力控盘< 0,主力控盘,0,1.5,0),COLOR00CCFF;
STICKLINE(主力控盘< 0,主力控盘,0,0.5,0),COLOR00FFFF;
STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,2.8,0),COLOR000055;
STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,2,0),COLOR000088;
STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,1.5,0),COLOR0000AA;
STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,1,0),COLOR0000CC;
STICKLINE(主力控盘>REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,0.5,0),COLOR0000EE;
STICKLINE(GU5>50 AND COST(80)< CLOSE AND 主力控盘>0,主力控盘,0,2.8,0),COLOR550055;
STICKLINE(GU5>50 AND COST(80)< CLOSE AND 主力控盘>0,主力控盘,0,2,0),COLOR880088;
STICKLINE(GU5>50 AND COST(80)< CLOSE AND 主力控盘>0,主力控盘,0,1.5,0),COLORAA00AA;
STICKLINE(GU5>50 AND COST(80)< CLOSE AND 主力控盘>0,主力控盘,0,1.0,0),COLORCC00CC;
STICKLINE(GU5>50 AND COST(80)< CLOSE AND 主力控盘>0,主力控盘,0,0.5,0),COLOREE00EE;
STICKLINE(主力控盘< REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,2.8,0),COLOR555500;
STICKLINE(主力控盘< REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,2,0),COLOR888800;
STICKLINE(主力控盘< REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,1.5,0),COLORAAAA00;
STICKLINE(主力控盘< REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,1,0),COLORCCCC00;
STICKLINE(主力控盘< REF(主力控盘,1) AND 主力控盘>0,主力控盘,0,0.5,0),COLOREEEE00;
DRAWTEXT(建仓,5,'建仓'),COLORMAGENTA;
DRAWICON(启动 AND NOT(REF(启动,1)),GUB*10+5,1);
DRAWTEXT_FIX(1,0,0.05,0,'★开始控盘——逐步介入'),COLORMAGENTA;
DRAWTEXT_FIX(1,0,0.1,0,'★首次高度控盘——启动'),COLORRED;
DRAWTEXT_FIX(1,0,0.15,0,'★收盘前红柱低于昨日红柱——减仓'),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.2,0,'★散户线上穿主力线——清仓'),COLORGREEN;
生命CCI线:=CCI(84)/10,COLORRED,LINETHICK2;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
买1:=VAR10;
买2:=(VAR11+VAR13+VAR15+VAR17);
B:=IF(买1>0 OR 买2>0,LOW,DRAWNULL),COLORYELLOW;
GU11:=1;
GU21:=((((2*CLOSE)+HIGH)+LOW) / 4);
高位:=90,COLORFFFF00;
低位:=20,COLORMAGENTA;
GU41:=LLV(LOW,5);
GU51:=HHV(HIGH,4);
GC11:=(EMA((((GU21-GU41)/(GU51-GU41))*100),4)*GU11),COLORFF00FF;
GC21:=(EMA(((0.667*REF(GC11,1))+(0.333*GC11)),2)*GU11),COLORFFFFFF;
均价:=SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK1;
最新:=CLOSE,LINETHICK1,COLORRED;
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
KK1:=SE;
KK2:=BU;
主力买入5: 趋势强度>2 AND 主力线>REF(主力线,1) AND 主力控盘>REF(主力控盘,1) AND KK2<=REF(KK2,1);
DRAWTEXT(主力买入5,有庄控盘,'买'),COLORYELLOW;
DRAWICON(主力买入5,H*1.6,30);
副图3
上趋势:MA(LOW,20)*1.2,COLORRED,DOTLINE;
次上趋势:MA(LOW,20)*1.10,COLORMAGENTA;
次下趋势:=MA(HIGH,20)*0.9,COLORRED;
下趋势:=MA(HIGH,20)*0.8,COLORGREEN,CROSSDOT;
趋势强度:IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C< 次上趋势,2,IF(C< 下趋势,0,1))),COLORLIMAGENTA;
STICKLINE(趋势强度=0,H,L,2,1),COLORBLUE;
STICKLINE(趋势强度=1,H,L,2,1),COLORGREEN;
STICKLINE(趋势强度=2,H,L,2,1),COLORGRAY;
STICKLINE(趋势强度=3,H,L,2,1),COLORYELLOW;
STICKLINE(趋势强度=4,H,L,2,1),COLORMAGENTA;
STICKLINE(趋势强度=0,C,O,2,0),COLORBLUE;
STICKLINE(趋势强度=1,C,O,2,0),COLORGREEN;
STICKLINE(趋势强度=2,C,O,2,0),COLORGRAY;
STICKLINE(趋势强度=3,C,O,2,0),COLORYELLOW;
STICKLINE(趋势强度=4,C,O,2,0),COLORMAGENTA ;
副图4
均价:=SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK1;
最新:=CLOSE,LINETHICK1,COLORRED;
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
KK1:SE;
KK2:BU;
主力买入5:=KK2<=REF(KK2,1) ;
DRAWTEXT(主力买入5, KK1,'买'),COLORYELLOW;
DRAWICON(主力买入5,最新,1);