1、短买副图 A1:=REF(C<O,2); A2:=REF(C<O,1); A3:=C>O AND C>=REF(O,1) AND VOL/REF(VOL,1)>=0.5; 短买:A1 AND A2 AND A3 AND REF(VOL,1)>REF(VOL,2); STICKLINE(短买,0,1,3,1),coloryellow; DRAWTEXT(短买,(40),'短买'),coloryellow; VAR1:=(EMA(C,12)-EMA(C,26))*100+50; VAR2:=EMA(VAR1,9); VAR3:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10; VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; VAR5:=SMA(VAR4,13,8); VAR6:=SMA(VAR3,21,8); VAR7:=MA(C,80)-MA(C,10)/7; VAR8:=EMA(C,5); VAR9:=MA((LLV(C,9))*1.1,14); VAR10:=2*VAR9-VAR8-C*0.1; VAR11:=IF(((VAR8-VAR10)*5>0),(POW((VAR8-VAR10)*5,2))/10,(-1*(POW((VAR8-VAR10)*(5),2)))/(10)); VAR12:=IF((VAR11>0),VAR11-0,12); VAR13:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100; VAR14:=(HHV(C,10)-C)/HHV(C,10)>0.05; 趋势:CEILING(SMA(VAR5,13,8)),LINETHICK2,COLOR0000FF; 看底:IF((趋势-VAR6<(-65)),1,6),COLOR00FF00; 顶峰:IF((趋势-VAR6>85),95,100),COLORF0F000; 黄金区:DRAWICON(IF(VAR13<15,15,0),13,12),coloryellow; 操盘线: MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,colorblue; STICKLINE(FILTER(趋势<REF(趋势,1)AND 趋势>75 OR CROSS(趋势,操盘线)AND 趋势<REF(趋势,1)AND 操盘线>60,5),100,60,8,1),COLORFFFF00; VAR15:FILTER(CROSS(趋势,VAR12)AND 趋势<REF(趋势,2)AND C>REF(C,1) OR 趋势>REF(趋势,1)AND 趋势<35 AND VAR14 AND C>REF(C,1),5); STICKLINE(VAR15,5,50,9,2),COLOR00FF00; DRAWTEXT(看底<6 AND VAR15,50,'选股'); 2、快炒线上抓牛头 M:=13; M2:=27; D:=(EMA(CLOSE,10)-EMA(CLOSE,36))*100; R:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*400-200; Var3:=REF(HIGH,1)*1.1; Var4:=HIGH*1.1; Var5:=(Var4*VOL+Var3*(CAPITAL-VOL))/CAPITAL; 牛头:MA(R,2),colorred,linethick1; 本线:MA(D,1),coloryellow ,linethick1; Var6:=REF(LOW,1)*0.9; Var7:=LOW*0.9; Var8:=(Var7*VOL+Var6*(CAPITAL-VOL))/CAPITAL; Var9:=EMA(Var8,30); 快炒线:MA(牛头,2),colorblue; VarA:=EMA(Var5,30); VarB:=VarA-2; VarC:=IF(CLOSE<=Var9,VarB,VarA); STICKLINE(V>0,0,0,5,0),colorgreen; VarD:=MA(CLOSE,80)-MA(CLOSE,10)/17; VarE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; 卖出线:SMA(SMA(VarE,3,1),3,1),colorff6633 ; 买入线: 3*SMA(VarE,3,1)-2*卖出线,colorred; STICKLINE(V>-100,-100,-100,5,0),colorred; DRAWICON(CROSS(90,买入线),90,2); 顶: STICKLINE(CROSS(90,买入线),100,0,5,0),colorgreen; DRAWTEXT(CROSS(牛头,本线),牛头-100,'抓牛头'),colorgreen; 黄金点: STICKLINE(SMA(VarE,3,1)>卖出线, SMA(VarE,3,1),卖出线,4,0),coloryellow; FILLRGN(牛头,本线,牛头>本线,RGB(255,0,0),牛头<本线,colorblack); 3、多指数共振钝化背离结构 ( 股 民 学 院 : http://www.58188.com ) //多指数共振钝化背离结构 N:=10; M:=16; SQX:=(C-MA(CLOSE,13))*100; DIF:=EMA(MA(SQX,7),1),colorwhite; DEA:=EMA(DIF,7),coloryellow; DIF2:100*(EMA(CLOSE,12)-EMA(CLOSE,26)); DEA2:EMA(DIF2,9); MACD:=(DIF-DEA)*2,COLORSTICK; STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,0.1,0),colorred; STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,0.1,0),COLOR00FFFF; 死叉:=CROSS(DEA2,DIF2); N1:=BARSLAST(死叉); N2:=REF(BARSLAST(死叉),N1+1); N3:=REF(BARSLAST(死叉),N2+N1+2); STICKLINE(MACD<0 AND MACD<REF(MACD,1),MACD,0,0.1,0),COLORFFFF00; STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.1,0),COLORFF00A9; CL1:=LLV(C,N1+1); DIFL1:=LLV(DIF2,N1+1); RSV:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*247.2-123.6; K:SMA(SMA( RSV,3,1),3,1),colorwhite; D:MA(EMA(K,3),3),coloryellow; J:3*K-2*D,colormagenta; CL2:=REF(CL1,N1+1); DIFL2:=REF(DIFL1,N1+1); CL3:=REF(CL2,N1+1); DIFL3:=REF(DIFL2,N1+1); A11:=BARSLAST(REF(CROSS(DIF,DEA),1)); PDIFL2:=IF(DIFL2>0,INTPART(LOG(DIFL2))-1,INTPART(LOG(-DIFL2))-1); MDIFL2:=INTPART(DIFL2/POW(10,PDIFL2)); B1:=REF(C,A11+1)>C AND REF(DIF,A11+1)<DIF AND CROSS(DIF,DEA); A12:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1)); B2:=REF(C,A12+1)>C AND REF("KDJ.K", A12+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"); A13:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1)); PDIFL3:=IF(DIFL3>0,INTPART(LOG(DIFL3))-1,INTPART(LOG(-DIFL3))-1); MDIFL3:=INTPART(DIFL3/POW(10,PDIFL3)); B3:=REF(C,A13+1)>C AND REF("RSI.RSI1", A13+1)<"RSI.RSI1"AND CROSS("RSI.RSI1","RSI.RSI2"); C1:=BARSLAST(REF(CROSS(DEA,DIF),1)); D1:=REF(C,C1+1)<C AND REF(DIF,C1+1)>DIF AND CROSS(DEA,DIF); C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1)); MDIFB2:=INTPART(DIF2/POW(10,PDIFL2)); MDIFB3:=INTPART(DIF2/POW(10,PDIFL3)); D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K"); C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1)); D3:=REF(C,C3+1)<C AND REF("RSI.RSI1", C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1"); 直接底背离:=(CL1<CL2 ) AND (MDIFB2>MDIFL2) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB2<=REF(MDIFB2,1); 隔峰底背离:=(CL1<CL3 AND CL3<CL2 ) AND (MDIFB3>MDIFL3) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB3<=REF(MDIFB3,1); MACD底背:IF(B1>0,50,0),LINETHICK2,colorred; KDJ底背:IF(B2>0,65,0),LINETHICK2,COLORFF00FF; B:=(直接底背离 OR 隔峰底背离); BG:=((MDIFB2>REF(MDIFB2,1))*REF(直接底背离,1)) OR ((MDIFB3>REF(MDIFB3,1))*REF(隔峰底背离,1)); 底背离消失:=(REF(直接底背离,1) AND DIFL1<=DIFL2 ) OR (REF(隔峰底背离,1) AND DIFL1<=DIFL3); RSI底背:IF(B3>0,80,0),LINETHICK2,coloryellow; MACD顶背:IF(D1>0,-50,0),LINETHICK2,COLOR00FF00; STICKLINE(B OR BG,DIF2,DEA2,8,0),colorred; DRAWTEXT((B AND COUNT(B,2)=1),(DIF2*1.5),'钝化'),coloryellow; KDJ顶背:IF(D2>0,-65,0),LINETHICK2,COLORFFCC66; RSI顶背:IF(D3>0,-80,0),LINETHICK2,colorwhite; DRAWTEXT(FILTER(底背离消失,10),(DIF2+MACD),'底背离消失'),colormagenta; STICKLINE(BG,0,(DIF2+DEA2),5,0), colorred; |