主图
参数
N 2 100 10
M 2 100 3
CV:=CLOSE;
BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:BBIBOLL+M*STD(BBIBOLL,N);
DWN:BBIBOLL-M*STD(BBIBOLL,N);
BDGD:=C=HHV(C,13);
GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:REF(C,GDSJ),COLORFF00FF,POINTDOT;
突破:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,NODRAW;
STICKLINE(GDSJ<=6,高点,高点,3,0),COLORFF00FF;
DRAWTEXT(突破,LOW,'★'),COLOR00FFFF;
BDDD:=C=LLV(C,13);
DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;
低点:REF(C,DDSJ),COLOR00FF00,POINTDOT;
STICKLINE(DDSJ<=6,低点,低点,3,0),COLOR00FF00;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'底背离'),COLORRED;
{DRAWICON(CROSS(FF,MA15),(LOW * 0.99),7); }
DRAWRECTREL(0,480,205,589,RGB(10,1,30));
资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),NODRAW;
资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),NODRAW;
资金出入:=资金流入+资金流出,NODRAW;
DRAWBAND(资金出入,RGB(150,0,150),0,RGB(0,100,0)),NODRAW;
资金流量:资金出入,NODRAW;
资金比:资金出入/SUM(V,FROMOPEN)*100,NODRAW;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2)),NODRAW;
攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN,NODRAW;
攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),NODRAW;
攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),NODRAW;
攻击流量:攻击量A+攻击量B,NODRAW;
NOTEXT攻击线:攻击流量,NODRAW;
攻击比:攻击流量/SUM(V,FROMOPEN)*100,COLORRED,NODRAW;
资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));
DRAWTEXT_FIX(1,0.50,0,20,'榆林散户联盟零点制作,QQ群:11470669'),COLOR0000FF;
{STICKLINE(资金流量A>0,资金流量A,0,1,0),COLOR0000FF;
STICKLINE(资金流量B<0,资金流量B,0,1,0),COLORFF0000;};
DRAWRECTREL(20,570,180,540,RGB(0,75,200));
DRAWRECTREL(20,570,30,540,RGB(0,250,50));
DRAWRECTREL(20,570,15+CONST(资金流量比*150/100),540,RGB(200,50,0));
DRAWTEXT_FIX(1,0.0,0.5,0,STRCAT(STRCAT(' 【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORYELLOW;
DRAWTEXT_FIX(1,5.0,0.9,0,EXTERNSTR(0,5))COLOR0000FF;
DRAWTEXT_FIX(1,0.0,0.2,0,EXTERNSTR(0,5))COLOR0000FF;
DRAWTEXT_FIX(C>0,0.004,0.11,0,STRCAT('智能诊股:',EXTERNSTR(0,2))),COLORFFFF00,LINETHICK2;
RSI1:=((SMA(MAX((CLOSE - (REF(CLOSE,1))),0),3,1) / SMA(ABS((CLOSE - (REF(CLOSE,1)))),3,1))* 100);
DRAWTEXT(CROSS(88,RSI1) AND (MA(C,3))>(EMA(C,3)) ,(HIGH + 0.3),'顶背离'),COLORGREEN;
{DRAWICON(CROSS(88,RSI1) AND (MA(C,3))>(EMA(C,3)) ,(HIGH + 0.3),8); };
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)>C AND
REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)
<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")
>0,L-0.02,'MACD底背离'),COLORRED;{MACD底背离}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)>C AND
REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)<"KDJ.K" AND
CROSS("KDJ.K","KDJ.D"),L-0.10,'KDJ底背离'),COLORBLUE;{KDJ底背离}
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)>C AND
REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)
<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2")
>0,L-0.18,'RSI底背离');{RSI底背离};
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)<C
AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)
>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")
>0,H+0.16,'MACD顶背离'),COLORGREEN;{MACD顶背离};
DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)<C
AND REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)
>"KDJ.K" AND CROSS("KDJ.D","KDJ.K")>0,H+0.08,'KDJ顶背离');{KDJ顶背离};
副图1
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);
X_1:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
X_2:=SUM(IF(CLOSE=REF(CLOSE,1),0,X_1),0);
X_3:=MA(X_2,30);
X_4:=(EMA(CLOSE,12)-EMA(CLOSE,26))*1;
X_5:=EMA(X_4,9)*1;
X_6:=(X_4-X_5)*2;
X_7:=CROSS(X_4,X_5);
X_8:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_9:=(8*X_8+7*REF(X_8,1)+6*REF(X_8,2)+5*REF(X_8,3)+4*REF(X_8,4)+3*REF(X_8,5)+2*REF(X_8,6)+REF(X_8,8))/36;
X_10:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>X_9 AND CLOSE>OPEN;
X_11:=FILTER(X_10,5);
X_12:=COUNT(X_11,6)=1;
X_13:=MA(CLOSE,60);
X_14:=MA(CLOSE,5);
X_15:=MA(VOL,5);
X_16:=MA(VOL,35);
X_17:=MA(VOL,135);
X_18:=CROSS(X_15,X_17) OR CROSS(X_15,X_16) AND X_2>X_3;
X_19:=CROSS(CLOSE,X_13);
X_20:=EMA(CLOSE,13);
X_21:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_22:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
X_23:=X_21<REF(X_22,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
X_24:=X_23 AND COUNT(X_23,30)=1;
STICKLINE(X_24,0,0.15,3,0),COLORFF80FF;
STICKLINE(X_24,0.15,0.35,2,0),COLOR3000FF;
STICKLINE(X_24,0.35,0.51,1,0),COLORYELLOW;
DRAWTEXT(X_24,0.55,2286),COLORMAGENTA;
X_25:=VOL>REF(VOL,1)*1.9;
X_26:=VOL<REF(LLV(VOL,13),1);
X_27:=VOL<REF(LLV(VOL,55),1);
X_28:=X_25 AND REF(X_25,1);
X_29:=CONST(DATE);
X_30:=IF(DATE<X_29,240,FROMOPEN);
X_31:=BARSCOUNT(CLOSE);
X_32:=IF(VOL/X_30*240=CONST(LLV(VOL,60)) AND VOL/X_30*240>CONST(LLV(VOL,X_31)),6,0);
X_33:=IF(VOL/X_30*240=CONST(LLV(VOL,60)) AND VOL/X_30*240=CONST(LLV(VOL,X_31)),6,0);
DL:X_33 OR X_32;
DRAWTEXT(DL,0.4,1424),COLORYELLOW;
副图2
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);
金叉疯牛: EMA((EMA(CLOSE,3)+EMA(CLOSE,5)+EMA(CLOSE,13)+EMA(CLOSE,21))/4,2),LINETHICK2,COLORWHITE;
界:=MA(CLOSE,27);
DRAWBAND(金叉疯牛,RGB(155,0,0),界,RGB(0,255,0));
AAAA:=MA(C,1);
AAA:=SMA(SMA(SMA(AAAA,2,1),2,1),2,1);
BBB:=MA(AAA,3);
DRAWBAND(AAA,RGB(255,255,0),BBB,RGB(0,0,255));
CCC:=(3*C+L+O+H)/6;
牛线:=(20*CCC+19*REF(CCC,1)+18*REF(CCC,2)+17*REF(CCC,3)+16*REF(CCC,4)+15*REF(CCC,5)+14*REF(CCC,6)+13*REF(CCC,7)+12*REF(CCC,8)+11*REF(CCC,9)+10*REF(CCC,10)+9*REF(CCC,11)+8*REF(CCC,12)+7*REF(CCC,13)+6*REF(CCC,14)+5*REF(CCC,15)+4*REF(CCC,16)+3*REF(CCC,17)+2*REF(CCC,18)+REF(CCC,20))/210,COLORRED,LINETHICK2;
马线:=MA(牛线,4);
DRAWBAND(牛线,RGB(255,40,0),马线,RGB(256,200,0));
MAA5:=MA(C,5),COLORFF00FF,LINETHICK0;
N1:=IF(BARSCOUNT(C)>=5,3,BARSCOUNT(C));
AM:=VOL*(C+L+H)/3;
短线:=SUM(AM,N1)/SUM(VOL,N1),COLORRED;
GA:=(3*C+L+O+H)/6;
GB:=SMA(GA,20,1);
D1:=MA(GB,3);
D2:=MA(GB,13);
D3:=MA(GB,21);
D4:=MA(GB,37);
D5:=EMA(CLOSE,5){,LINETHICK2,COLORYELLOW};
D6:=EMA(CLOSE,13){,COLOR0099FF};
STICKLINE(D3>D4,D3,D4,3,0),COLORYELLOW;
STICKLINE(D3<D4,D3,D4,3,0),COLORBLUE;
STICKLINE(D1>D2,D1,D2,3,0),COLORMAGENTA;
STICKLINE(D1<D2,D1,D2,3,0),COLORGREEN;
STICKLINE(D5>D6,D5,D6,3,0),COLORRED;
STICKLINE(D5<D6,D5,D6,3,0),COLORFFFF00;
长线1:=D3,COLORYELLOW,LINETHICK2;
长线2:=D4,COLORBLUE,LINETHICK2;
中线1:=D1,COLORYELLOW,LINETHICK2;
中线2:=D2,COLORGREEN,LINETHICK2;
短线1:=D5,COLORRED,LINETHICK3;
短线2:=D6,COLORMAGENTA,LINETHICK3;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,3),3)/EMA(EMA(ABS(A7),3),3);
买:=LLV(A8,2)=LLV(A8,3) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
A1:=EMA(C,10)>EMA(C,30) AND EMA(C,30)>REF(EMA(C,30),1) AND EMA(C,10)>REF(EMA(C,10),1) AND C>EMA(C,21);
大牛:IF(A1,EMA(C,30),DRAWNULL),COLORFF00FF,LINETHICK5;
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR
VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
STICKLINE(VAR19,L,L*0.98,2,0),COLORGREEN;
X_62:=REF(CLOSE,1);
X_63:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.03);
X_64:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.05);
X_65:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.07);
STICKLINE(X_63,CLOSE,OPEN,1.5,1),COLOR555555;
STICKLINE(X_63,CLOSE,OPEN,1.5,1),COLOR777777;
STICKLINE(X_63,CLOSE,OPEN,1,1),COLORCCCCCC;
STICKLINE(X_63,CLOSE,OPEN,0.3,1),COLORCCDDBB;
STICKLINE(X_64,CLOSE,OPEN,1.5,1),COLOR002288;
STICKLINE(X_64,CLOSE,OPEN,1.5,1),COLOR0033AA;
STICKLINE(X_64,CLOSE,OPEN,1,1),COLOR0055EE;
STICKLINE(X_64,CLOSE,OPEN,0.3,1),COLOR0088FF;
STICKLINE(X_65,CLOSE,OPEN,1.5,1),COLOR117777;
STICKLINE(X_65,CLOSE,OPEN,1.5,1),COLOR119999;
STICKLINE(X_65,CLOSE,OPEN,1,1),COLOR11BBBB;
STICKLINE(X_65,CLOSE,OPEN,0.3,1),COLOR44FFFF;
STICKLINE(买,OPEN,CLOSE,0.5,0),COLORWHITE;
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买'),COLORYELLOW;
NO:IF(C>=短线,短线,DRAWNULL),LINETHICK3,COLORRED;
超宇宙:IF(MA(C,2)>REF(MA(C,2),1),MA(C,2),DRAWNULL),COLORWHITE,LINETHICK2;