MACD
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIFF,9); MACD:=2*(DIFF-DEA); 低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1; STICKLINE(低位金叉,DEA*0.86,DEA*0.66,6,0),coloryellow; DRAWTEXT(低位金叉,dea*0.86,' 天知金叉'),coloryellow; JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); 二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; STICKLINE(二次金叉,DEA*0.96,DEA*0.76,6,0),ColorFF00FF; DRAWICON(二次金叉,dea*1.1,'BUY') ; DRAWTEXT(二次金叉,DEA*0.96,' 二次金叉'),ColorFF00FF; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(底背離,DEA*1.09,DEA*0.86,6,0),Color00FF00; DRAWLINE(A1=0,DEA,底背離,DEA,0),colorred,linethick1; DRAWTEXT(底背離,DEA*1.09,' 底背離'),Color6600FF; A2:=BARSLAST(REF(CROSS(DEA,DIFF),1)); 頂背離:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF); DRAWLINE(A2=0,DEA,頂背離,DEA,0),colorgreen,linethick1; DRAWTEXT(頂背離,DEA*1.2,' 頂背離'),Color00FF00; STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,6,0),COLOR0000AA; STICKLINE(MACD>0 AND MACD STICKLINE(MACD<0 AND MACD STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,6,0),COLORFF00A9;
DIFF :=(EMA(CLOSE,8) - EMA(CLOSE,21)); DEA := EMA(DIFF,5); F1:=ZIG(3,16); PARTLINE(DEA,DEA>REF(DEA,1) AND F1> REF(F1,1),RGB(255,127,0),DEA REF(F1,1),RGB(0,100,255),DEA=REF(DEA,1) AND F1> REF(F1,1) ,RGB(0,255,50),F1< REF(F1,1),RGB(0,0,0)),Linethick4; VERTLINE(F1 MACD :=2*(DIFF-DEA); 中:0,colorwhite; gj:=MAX(C,O); STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,8,0),color0000FF; STICKLINE(MACD>0 AND MACD STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,5,0),color0099FF; STICKLINE(MACD<0 AND MACD L4:=LLV(gj,4); gt:=DEA>REF(DEA,1) AND REF(DEA,1) A1:=BARSLAST(REF(gt,1)); 底背離:=REF(L4,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND gt; DRAWLINE(A1=0,DEA,底背離,REF(DEA,A1),0),color00FFFF,LINETHICK2; DRAWLINE(底背離,DEA,底背離,REF(DEA,A1),0),color00FFFF,LINETHICK2; DRAWTEXT(底背離,REF(DEA,A1)*1.18,' 底背離'),COLOR00FFFF; H4:=HHV(gj,4); gt2:=deaREF(DEA,2); A2:=BARSLAST(REF(gt2,1)); 頂背離:= REF(H4,A2+1)
DRAWLINE(A2=0 ,DEA,頂背離,REF(DEA,A2),0),colorgray,LINETHICK2; DRAWLINE(頂背離,DEA,頂背離,REF(DEA,A2),0),colorgray,LINETHICK2; DRAWTEXT(頂背離,REF(DEA,A2)*1.18,'頂背離'),colorAAAAAA; DRAWICON(CROSS(DIFF,DEA) AND F1> REF(F1,1),DEA,'buy'); DRAWICON(CROSS(DEA,DIFF),DEA,'sell'); e:=VOL; DRAWICON(e
介必升:0,colorgray; VARF:=TROUGHBARS(3,15,1)<4; STICKLINE(FILTER(VARF=1,5),2,40,8,0),colorwhite; DRAWTEXT(FILTER(VARF=1,3),40,'必升'), colormagenta; LC := REF(CLOSE,1); DI:=(EMA(CLOSE,12) - EMA(CLOSE,26))*200; DE:=EMA(DI,9); MACD:=2*(DI-DE); RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*400-200; STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,8,0),COLOR0000AA; STICKLINE(MACD>0 AND MACD STICKLINE(MACD<0 AND MACD STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,8,0),COLORFF00A9; 你:=MA(CLOSE,1); 老:=(((LOW + HIGH) + CLOSE) / 3); 板:=MA(老,5); 好:=HHV(板,10); 老板:=MA(老,5); 買賣:=LLV(老板,10); 急買奇準(zhǔn):IF(LLV((你 < 買賣),5),50,0),colorFF; 急賣奇準(zhǔn):IF(HHV((你 < 好),5),100,50),colorFF0000; 短買奇準(zhǔn):IF(LLV((你 < 買賣),10),50,0),colorred; 短賣奇準(zhǔn):IF(HHV((你 < 好),10),100,50),colorFF00; Var3:=LLV(HIGH,240); Var4:=100*(CLOSE-Var3)/Var3; Var5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100; Var6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; Var7:=0; Var8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100; Var9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100; VarA:=BARSCOUNT(CLOSE); VarB:=Var8<20 AND Var9<23 AND VarA>35; VarC:=VarB AND COUNT(VarB,1)=1; VarD:=EMA(CLOSE,21)-EMA(CLOSE,8); VarE:=EMA(VarD,5); VarF:=TROUGHBARS(3,6,1)<4 AND CROSS(VarD,VarE); 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); Var12:=ZIG(3,6)=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); Var14:=ZIG(3,22)=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); Var16:=ZIG(3,51)=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); Var18:=ZIG(3,72)=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3); Var19:=EMA(CLOSE,2)-EMA(CLOSE,150); Var1A:=EMA(Var19,100); Var1B:=2*(Var19-Var1A); Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1); Var1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); Var1E:=EMA(Var1D*0.97,3); Var1F:=(HIGH+LOW+CLOSE)/3; Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14)); Var21:=CROSS(Var1E,LOW); 買點1:=Var10; 買點2:=(Var11+Var13+Var15+Var17); 賣點1:=(Var12+Var14+Var16+Var18),linethick2; Var22:=買點1 AND VarF AND VarC AND Var21 AND Var4<0 AND Var5=0 AND Var6=0 AND Var20<(-110); VAR1:=MA(CLOSE,5); VAR2:=MA(CLOSE,10); VAR3:=MA(CLOSE,30); VAR4:=MA(CLOSE,60); VAR5:=EMA(COST(85),7); VAR6:=EMA(COST(15),7); VAR7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4); VAR8:=INTPART(VAR7*100)/100; VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7); VARA:=INTPART(VAR9*100)/100; VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28); VARC:=INTPART(VARB*100)/100; VARD:=EMA(CLOSE,5)-EMA(CLOSE,10); VARE:=EMA(VARD,9); VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100; VAR10:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100; VAR11:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100; VAR12:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100; VAR13:=REF(VARE,1); VAR14:=VARE; VAR15:=VAR14-VAR13; VAR16:=REF(VARD,1); VAR17:=VARD; VAR18:=VAR17-VAR16; VAR19:=OPEN; VAR1A:=CLOSE; 買點3:=IF(VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A>=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18>0,0.5,0); DRAWICON(買點3>0,LOW-0.01,1); DRAWTEXT(買點1>0,LOW-0.01,'*n買n1'),colorred,ALIGN0; DRAWTEXT(買點2>0,LOW-0.01,'*n買n2'),colorgreen,ALIGN0; DRAWTEXT(賣點1>0,HIGH+0.2,'*n賣n1'),colorcyan,ALIGN0; 大趨勢操盤 1.RSI:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100)+150; 主力籌碼:100*WINNER(CLOSE*0.95),LINETHICK0,COLORFFFFFF; A1:=CAPITAL/1000; 凈流入:=VOL/A1,LINETHICK2,COLOR00FFFF; 凈流動向:=(凈流入-REF(凈流入,1)); 2.N3:=BARSLAST(CROSS(C,MA(C,20))); N4:=BARSLAST((MA(C,20)-C)>0); 黑馬跟蹤:IF(N3 黑馬:=IF(黑馬跟蹤>=1,黑馬跟蹤+300,300),COLOR0000FF,LINETHICK2; 黑馬趨勢:DRAWBAND(黑馬,RGB(204,51,51),300,RGB(0,179,0)); 3.VAR01:=(CLOSE*2+HIGH+LOW)*2; VAR02:=EMA(VAR01,13)-EMA(VAR01,34); VAR03:=EMA(VAR02,5); 主力控盤:((VAR02-VAR03)*20)-200,COLORFF00FF,LINETHICK2; STICKLINE(主力控盤>=-200,主力控盤,-200,2,0),COLORRED; STICKLINE(主力控盤<-200 ,主力控盤,-200,2,0),COLORGREEN; 4.V1:=(C*2+H+L)*500; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=(V2-V3); 莊家秘密撤:=IF(V4<=0,V4,0)/10,COLOR00FF00,LINETHICK2; 莊家秘密進:IF(V4,V4,0)/10,COLORFF00FF,LINETHICK2; STICKLINE(莊家秘密進>0,莊家秘密進,0,1,1),COLORFF66FF; STICKLINE(莊家秘密撤<0,0,莊家秘密撤,1,1),COLORFFFF80; 5.RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*250; 長K:SMA(RSV1,5,1),COLORRED; 長D:SMA(長K,10,1),COLOR66CC33; STICKLINE(長K>長D,長K,長D,2,1),COLORRED; STICKLINE(長K<=長D,長K,長D,2,1),COLOR669933; STICKLINE(長K>=長D AND 長K STICKLINE(長K<=長D AND 長K>REF(長K,1),長K,長D,2,1),COLORFFFF00; 6.RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*300; K1:=SMA(RSV2,3,1); D1:=SMA(K1,3,1); J:=3*K1-2*D1; 莊籌線:=EMA(J,6)*2,COLORFFFFFF,LINETHICK2; 莊線動向:莊籌線-REF(莊籌線,1),COLORFFFF00,LINETHICK2; 7.A:=VOL*CLOSE; B:=SUM(A,1)/SUM(VOL,1); B12:=EMA(B,17); 資金:=(B-B12)*500/B,COLORRED,LINETHICK4; 資金1:IF(資金>0,-資金+270,270),COLORFF00FF,LINETHICK2; 主力資金:-(資金1-270),LINETHICK0; 資金動向:=-(資金1-REF(資金1,1)),LINETHICK0; STICKLINE(資金1<270,270,資金1,0,-1),COLOR00FFFF; 8.買線:=EMA(C,2),LINETHICK0; 賣線:=EMA(SLOPE(C,21)*20+C,42),LINETHICK0; STICKLINE(CROSS(買線,賣線),290,330,2,0),COLORFF00FF; STICKLINE(CROSS(賣線,買線),290,330,2,0),COLOR00FF00; 9.MTM:=C-REF(C,1); ZLGJ:=400*EMA(EMA(MTM,9),9)/EMA(EMA(ABS(MTM),9),9),COLORWHITE; MAZL:=MA(ZLGJ,3),COLORYELLOW,LINETHICK2; 主力軌跡1:EMA(ZLGJ,7),COLORFFFFFF; 主力軌跡2:EMA(MAZL,7),COLOR00FFFF,LINETHICK1; OOO:=主力軌跡1-主力軌跡2; STICKLINE(OOO>0,主力軌跡1,主力軌跡2,4,1),COLORRED; STICKLINE(OOO<0,主力軌跡1,主力軌跡2,4,1),COLORGREEN; 10.VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57; VAR4:=EMA(VAR3,5); VAR5:=3*VAR3-2*VAR4; 底部:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O; STICKLINE(底部,-50,0,2,1),COLORFFFFFF; DRAWTEXT(底部,-51,'底'),COLORFFFFFF; 11.A11:=(3*C+L+O+H)/6; X:=(20*A11+19*REF(A11,1)+18*REF(A11,2)+17*REF(A11,3)+16*REF(A11,4)+ 15*REF(A11,5)+14*REF(A11,6)+13*REF(A11,7)+12*REF(A11,8)+11*REF(A11,9)+ 10*REF(A11,10)+9*REF(A11,11)+8*REF(A11,12)+7*REF(A11,13)+6*REF(A11,14)+ 5*REF(A11,15)+4*REF(A11,16)+3*REF(A11,17)+2*REF(A11,18)+REF(A11,20))/210; 工作線:=EMA(CLOSE,17),COLORCYAN; 認(rèn)同線:=EMA(X,13),COLORMAGENTA; 莊家成本:=EMA(X,13),COLORFF00FF,LINETHICK2; MA2:=MA(C,莊家成本); STICKLINE(C>=莊家成本,270,290,2,0),COLORRED; STICKLINE(C<莊家成本,270,290,2,0),COLOR00FF00; DRAWTEXT(CROSS(C,莊家成本) ,290,'持股'),COLORFFFFFF; 選股100:IF( CROSS(長K,長D) ,100,0),COLORFFFFFF,LINETHICK1;
|