ZT:=REF(C,1)*1.1-C<0.01 AND H=C;{涨停}
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上轨:(1+14/100)*DD,DOTLINE,COLOR8000FF;
下轨:(1-14/100)*DD,DOTLINE,COLORD9D919;
上:(1+7/100)*DD,DOTLINE,COLORGREEN;
下:(1-7/100)*DD,DOTLINE,COLORGREEN;
中:(上+下)/2,DOTLINE,COLORGREEN;
DRAWKLINE(H,O,L,C);
{IF((上 <= REF(上,1)),上,DRAWNULL),COLORGREEN,DOTLINE;
IF((上 > REF(上,1)),上,DRAWNULL),COLORRED,DOTLINE;
IF((中 <= REF(中,1)),中,DRAWNULL),COLORGREEN,DOTLINE;
IF((中 > REF(中,1)),中,DRAWNULL),COLORRED,DOTLINE;
IF((下 <= REF(下,1)),下,DRAWNULL),COLORGREEN,DOTLINE;
IF((下 > REF(下,1)),下,DRAWNULL),COLORRED,LINETHICK2;}
顶:=(1+14/100)*DD,LINETHICK2,COLORBLACK;
底:=(1-14/100)*DD,LINETHICK2,COLORBLACK;
触底:=REF(L,1)<底 AND ZT ;
DRAWTEXT(触底,L,'反'),COLORCYAN;
STICKLINE(触底,C,O,3,1),COLORYELLOW;
STICKLINE(触底,C,O,1,0),COLORRED;
乖离涨停1:=H>上 AND ZT AND CROSS(C,上);
DRAWTEXT(乖离涨停1,L,'升'),COLORYELLOW;
STICKLINE(乖离涨停1,C,O,3,1),COLORYELLOW;
乖离涨停2:=O>上 AND ZT;
STICKLINE(乖离涨停2,C,O,3,1),COLORCYAN;
DRAWTEXT(乖离涨停2,L,'妖'),COLORCYAN;
趋势强度:=IF(C>上,IF(C>上轨,4,3),IF(C>下 AND C<上,2,IF(C<下轨,0,1)));
STICKLINE(趋势强度=0,H,L,0,1),COLORD9D919 ;
STICKLINE(趋势强度=1,H,L,0,1),COLORGREEN;
STICKLINE(趋势强度=2,H,L,0,1),COLORGRAY;
STICKLINE(趋势强度=3,H,L,0,1),COLORYELLOW;
STICKLINE(趋势强度=4,H,L,0,1),COLORMAGENTA;
STICKLINE(趋势强度=0,C,O,1,0),COLORD9D919 ;
STICKLINE(趋势强度=1,C,O,1,0),COLORGREEN;
STICKLINE(趋势强度=2,C,O,1,0),COLORGRAY;
STICKLINE(趋势强度=3,C,O,1,0),COLORYELLOW;
STICKLINE(趋势强度=4,C,O,1,0),COLORMAGENTA;
副图1
X_1:=100;
X_2:=DMA(CLOSE,VOL/MA(VOL,4)/4);
X_3:=DMA(CLOSE,VOL/MA(VOL,33)/33);
X_4:=(CLOSE-X_2)/X_2*100<(-11)/X_1*100;
X_5:=(X_2-X_3)/X_3*100<(-22.299999)/X_1*100;
X_66:=(REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));
X_6:=X_4 AND X_5 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>(-0.07) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND X_66;{ M}
X_7:=DMA(CLOSE,VOL/MA(VOL,3)/3);
X_8:=DMA(CLOSE,VOL/MA(VOL,33)/33);
X_9:=(CLOSE-X_7)/X_7*100<(-5);
X_10:=(X_7-X_8)/X_8*100<(-18);
X_11:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100;
X_12:=SMA(X_11,30,1);
X_13:=SMA(X_12,50,1);
X_14:=X_9 AND X_10 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>(-0.05) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1));
X_15:=X_14 AND COUNT(X_14,2)=1;
X_16:=CLOSE/MA(CLOSE,30)*100<75;
X_17:=CLOSE/MA(CLOSE,50)*100<78;
X_18:=HIGH>LOW*1.053;
X_19:=X_18 AND COUNT(X_18,5)>2;
X_20:=X_19 AND (X_16 OR X_17);
X_21:=DMA(EMA(CLOSE,5),SUM(VOL,8)/2.8/CAPITAL);
X_22:=(CLOSE-X_21)/X_21*100;
X_23:=REF(X_22,1)<(-34) AND X_22>REF(X_22,1) AND REF(X_22,1)<REF(X_22,2) AND X_22-REF(X_22,1)>1.76 OR X_20;
X_24:=IF(NAMELIKE(1) OR NAMELIKE(2),0,1);
X_25:=DYNAINFO(4)>0;
X_26:=X_24 AND X_25;
X_27:=X_23 AND (X_6 OR X_15) AND CLOSE>DTPRICE(REF(CLOSE,1),0.1);
X_28:=REF(X_23 AND (X_6 OR X_15),1) AND REF(CLOSE,1)<=DTPRICE(REF(CLOSE,2),0.1) AND CLOSE>DTPRICE(REF(CLOSE,1),0.1);
X_29:=X_27 OR X_28 AND X_26;
金腰带1:X_29 AND COUNT(X_29,3)=1 AND LOW<=LLV(LOW,5) AND CLOSE/LOW<1.02 AND CLOSE/REF(CLOSE,1)<1 AND HIGH/OPEN<1.02 AND COUNT(CLOSE/REF(CLOSE,1)<=0.93,10)>0,COLORCYAN;
STICKLINE(金腰带1,0,50,1,0),COLORCYAN;
明日涨停价:ZTPRICE(CLOSE,0.1),NODRAW,COLORWHITE;
获利盘:WINNER(CLOSE)*100,NODRAW,COLORLIRED;
副图2
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
钝化:=IF(COUNT(K<20,3)=3,10,DRAWNULL) AND IF(COUNT(K<20,1)=1,10,DRAWNULL);
红:=COUNT(钝化,3)>=2;
MA1:=EMA(CLOSE,8);
趋势线:=(5)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1),2,1);
GUA1:=((CLOSE>=REF(CLOSE,1)) AND (REF(CLOSE,1)>=REF(CLOSE,2)) AND (REF(CLOSE,1)<=REF(CLOSE,3)) AND (REF(CLOSE,2)<=REF(CLOSE,3)) AND ((REF(CLOSE,4)>REF(CLOSE,2)) OR (REF(CLOSE,4)<=REF(CLOSE,2)) AND (REF(CLOSE,5)>=REF(CLOSE,3))) OR (CLOSE>=REF(CLOSE,1)) AND (REF(CLOSE,1)<=REF(CLOSE,2))
AND (CLOSE>=REF(CLOSE,2)) AND ((REF(CLOSE,3)>REF(CLOSE,1)) OR(REF(CLOSE,3)<=REF(CLOSE,1)) AND (REF(CLOSE,4)>=REF(CLOSE,2))));
GUB2:=((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10)))*(100);
GUB3:=EMA(GUB2,7);
GUB4:=EMA(GUB3,10);
GUB5:=(3)*(GUB3)-(2)*(GUB4);
GUB6:=EMA(GUB5,5);
底部:=IF((趋势线<=5),58,0),COLORFF00FF;
串:=EMA(GUB6,1);
黄:=串 AND IF(REF((COUNT((串<=REF(串,1)),5)=5),1) AND (串>REF(串,1)),10,0);
P1:=3;
P2:=3;
RSSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
KS:=SMA(RSSV,3,1),COLORYELLOW;
DS:=SMA(KS,3,1),COLOR00DD00;
蓝:=FILTER(CROSS(KS,DS) AND KS<20,4);
金腰带2:=红 AND 黄 AND 蓝;
STICKLINE(金腰带2,0,75,2,0),COLORWHITE;
STICKLINE(金腰带2,52,73,1.2,0),COLORRED;
STICKLINE(金腰带2,27,48,1.2,0),COLORYELLOW;
STICKLINE(金腰带2,2,23,1.2,0),COLORBLUE;
副图3
XL1:=MA(L,2)*0.96;
XL2:=MA(L,26)*0.85;
XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);
XL4:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
XL5:=EMA(IF(L<=LLV(L,34),(EMA(XL4*13,13)+HHV(EMA(XL4*13,13),34)*2)/2,0),3)/618;
XL6:=(XL3 AND XL5>50) OR XL5>3;
XL7:=100-((90*(HHV(H,14)-C))/(HHV(H,14)-LLV(L,14)));
XL8:=100-MA(((100*(HHV(H,6)-C))/(HHV(H,6)-LLV(L,6))),34);
金腰带:IF(XL3 AND XL5>0,50,0),COLORYELLOW,LINETHICK3;
XG:=XL6 AND CROSS(XL7,MA(XL8,6)),COLORRED,NODRAW;
金丝带:IF(XG,80,0),COLORMAGENTA,STICK,LINETHICK5;
RSV:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;
K:=SMA(RSV,3,1);
趋势:EMA(EMA(((SLOPE(EMA(K+EMA(SLOPE(K,13),5)*5,21)*1.2,2)*5)
+EMA(K+EMA(SLOPE(K,13),5)*5,21)*1.2),3),3)-20,COLORCYAN,DOTLINE;
IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORRED,LINETHICK3;
副图4周期共振
VURH9:=WINNER(C)>0.95 AND HHV(C,13)=C AND 100*(C-MA(C,12))/MA(C,12)>10 ;
STICKLINE(VURH9>0,5,9.2,1,0),COLORFF00FF;
DRAWTEXT(VURH9,9.18,'追'),COLORYELLOW;
日K:="KDJ.K#DAY"(9,3,3);
日D:="KDJ.D#DAY"(9,3,3);
日YDIF:="MACD.DIF#DAY"(12,26,9);
日YDEA:="MACD.DEA#DAY"(12,26,9);
日RSI:="RSI.RSI1#DAY"(9);
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
周YDIF:="MACD.DIF#WEEK"(12,26,9);
周YDEA:="MACD.DEA#WEEK"(12,26,9);
周RSI:="RSI.RSI1#WEEK"(9);
月K:="KDJ.K#MONTH"(9,3,3);
月D:="KDJ.D#MONTH"(9,3,3);
月YDIF:="MACD.DIF#MONTH"(12,26,9);
月YDEA:="MACD.DEA#MONTH"(12,26,9);
月RSI:="RSI.RSI1#MONTH"(9);
XY1:=日K>日D;
XY2:=日YDIF>日YDEA;
XY3:=日RSI>5;
XY4:=周K>周D;
XY5:=周YDIF>周YDEA;
XY6:=周RSI>5;
XY7:=月K>月D;
XY8:=月YDIF>月YDEA;
XY9:=月RSI>5;
黑码初显:=XY1 AND XY2 AND XY3 AND XY4 AND XY5 AND XY6 AND XY7 AND XY8 AND XY9;
STICKLINE(黑码初显,0.05,5,1,0),COLORBLUE;
STICKLINE(黑码初显 AND C/REF(C,1)>1.05,0.05,5,2,0)COLORYELLOW;
STICKLINE(黑码初显 AND C/REF(C,1)>1.05,0.05,5,1,0),COLORRED;
DRAWTEXT(黑码初显,5,'黑'),COLORWHITE;
DIFX:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEAX:=EMA(DIFX,9);
AAAT:=(DIFX-DEAX)*2*60;
启动:=CROSS(AAAT-REF(AAAT,1),15),COLORRED,LINETHICK2;
DRAWTEXT(启动,2,'↖金牛启动'),COLORYELLOW,LINETHICK2;
DIFK:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEAK:=EMA(DIFK,9);
STICKLINE(DIFK>=DEAK,-10,-13,5,0),COLOR0000BB;
STICKLINE(DIFK<DEAK,-10,-13,5,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=13,-12,'★MACD日线★'),COLOR00FFFF;
周MD:=MACD.DIF#WEEK;
周MA:=MACD.DEA#WEEK;
STICKLINE(周MD>=周MA,-13.5,-16.5,5,0),COLOR0000BB;
STICKLINE(周MD<周MA,-13.5,-16.5,5,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=13,-15,'★MACD周线★'),COLOR00FFFF;
月MD:=MACD.DIF#MONTH;
月MA:=MACD.DEA#MONTH;
STICKLINE(月MD>=月MA,-16.5,-19.5,5,0),COLOR0000BB;
STICKLINE(月MD<月MA,-16.5,-19.5,5,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=13,-18,'★MACD月线★'),COLOR00FFFF;
RSVX:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
KX:=SMA(RSVX,3,1);
DHX:=SMA(KX,3,1);
JX:=3*KX-2*DHX;
STICKLINE(KX>=DHX,-20.5,-23.5,5,0),COLOR0000FF;
STICKLINE(KX<DHX,-20.5,-23.5,5,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=13,-22,'★KDJ日线★'),COLORFFFFFF;
周XK:="KDJ.K#WEEK" ;
周XD:="KDJ.D#WEEK" ;
STICKLINE(周XK>=周XD,-24.5,-27.5,5,0),COLOR0000FF;
STICKLINE(周XK<周XD,-24.5,-27.5,5,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=13,-26,'★KDJ周线★'),COLORWHITE;
月XK:="KDJ.K#MONTH" ;
月XD:="KDJ.D#MONTH" ;
STICKLINE(月XK>=月XD,-28.5,-31.5,5,0),COLOR0000FF;
STICKLINE(月XK<月XD,-28.5,-31.5,5,1),COLOR696969;
DRAWTEXT(CURRBARSCOUNT=13,-30,'★KDJ月线★'),COLORWHITE;
VUR1:=VOL/CAPITAL;
VUR2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
VUR3:=2.5*MAX(VUR1,VUR2);
VUR4:=DMA(CLOSE,VUR3);
VUR5:=20*(VUR4/REF(VUR4,1)-1)*38;
VUR6:=EMA(VUR5,2);
VUR7:=EMA(VUR5,2);
VUR8:=EMA(VUR7,3);
VURS:=EMA(VUR7,8);
VUR9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1);
VURA:=2.5*MAX(VUR1,VUR9);
VURB:=DMA(INDEXC,VURA);
VURC:=EMA(20*(VURB/REF(VURB,1)-1),1)*38;
VURD:=EMA(VURC,2);
VURE:=EMA(VURC,2);
D强:STICKLINE(VURD>0,0,VURD,3.3,1),COLORMAGENTA;
D弱:STICKLINE(VURD<0,0,VURD,3.3,1),COLORCYAN;
极强:STICKLINE(VUR5>0,0,VUR5,3.3,0),COLORYELLOW;
STICKLINE(VUR5>0,0,VUR5,2.5,0),COLOR00BBBB;
STICKLINE(VUR5>0,0,VUR5,1.5,0),COLOR00FFFF;
强势:STICKLINE(VUR6>0,0,VUR6,3.3,0),COLOR0000AA;
STICKLINE(VUR6>0,0,VUR6,2.5,0),COLOR0000BB;
STICKLINE(VUR6>0,0,VUR6,1.5,0),COLOR0000FF;
极弱:STICKLINE(VUR5<0,0,VUR5,3.3,0),COLOR00AA00;
STICKLINE(VUR5<0,0,VUR5,2.5,0),COLOR00BB00;
STICKLINE(VUR5<0,0,VUR5,1.5,0),COLOR00FF00;
弱势:STICKLINE(VUR6<0,0,VUR6,3.3,0),COLOR005AAA;
STICKLINE(VUR6<0,0,VUR6,2.5,0),COLOR007BBB;
STICKLINE(VUR6<0,0,VUR6,1.5,0),COLOR009FFF;
DX:=VURE,LINETHICK2,COLOR1088FF;
界:=VURS,LINETHICK2,COLOR6CBC10;
控:=VUR8,LINETHICK2,COLORFF10FF;
零:0,COLORCCCCCC;
额:AMOUNT/100000000,NODRAW;
VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;
流出亿:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;
差:(流入亿+流出亿),NODRAW;
强:=EMA((CLOSE-REF(CLOSE,1))/CLOSE*10,2);
主力:=EMA(差,1),COLORFF00FF,LINETHICK5;
差A:3*EMA(EMA(EMA(EMA(强,2),2),2),2),NODRAW;
净流:3*EMA(EMA(EMA(EMA(差A,1),2),2),2), COLORRED,NODRAW;
MID:= MA(CLOSE,26);
AB:= EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+EMA(CLOSE,8)+EMA(CLOSE,13))/4,2)LINETHICK2;
UPPER:= IF(DATE<1090501,MID+2*STD(CLOSE,26),0);
AUPPER:= IF(DATE<1090501,MID+1.7*2*STD(CLOSE,26),0);
LOWER:= IF(DATE<1090501,MID-2*STD(CLOSE,26),0);
ALOWER:= IF(DATE<1090501,MID-1.7*2*STD(CLOSE,26),0);
DRAWTEXT(CROSS(AB,MID),0,'追击');
K30:=SMA(((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100),3,1);
MD1:=K30-REF(K30,1)>9 ;
MD2:=V/REF(V,1)>2.4 OR REF(COUNT(ABS((C-REF(C,1))/REF(C,1))*100<2,6)=6,1) OR REF(V/REF(V,1)>2.4,1) ;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
暴张:IF(MD1 AND MD2 AND DIFF>DEA,6,0),COLORYELLOW;
DRAWTEXT(暴张,5,暴张),COLORYELLOW;
STICKLINE(MD1 AND MD2,0,5,2.5,0),COLORFF00FF,LINETHICK2;
DRAWTEXT(MD1 AND MD2 ,暴张,'暴张'),COLORWHITE;