1、新神龙抄底 DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA); CCDD1:=C/DIF>=-15.68 AND C/DIF<0; CCDD2:=C/DIF>=-21.38 AND C/DIF<0; SJ:=MACD>REF(MACD,1); XXD:=DIF<REF(DIF,1); JJC:=CROSS(DIF,DEA); 一号:IF(SJ AND XXD AND CCDD1,1,0),colorwhite; 二号:IF(JJC AND CCDD2,1,0),coloryellow; X0ZHH:=BARSLAST(CROSS(0,DIF))+1; SCCTS:=BARSLAST(CROSS(DEA,DIF))+1,NODRAW; DIFZDZ1:=LLV(DIF,SCCTS),NODRAW; GJJZDZ:=LLV(L,SCCTS),NODRAW; DIFZDZ2:=LLV(DIF,X0ZHH),NODRAW; DIFWS0ZZ:=HHV(DIF,SCCTS)<-0.08; LGLJXX:=REF(MACD,1)<0 AND REF(MACD,2)<0; BLLL:=LGLJXX AND DIFWS0ZZ AND (DIFZDZ1>=REF(DIFZDZ1,SCCTS) OR DIFZDZ1>=REF(DIFZDZ2,SCCTS)) AND GJJZDZ<=REF(GJJZDZ,SCCTS); 三号:IF(JJC AND DIF<0 AND BLLL,1.5,0),colormagenta; 2、操盘指导线 买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); DRAWTEXT(bu,LOW*1.08,'买'),coloree55ff,linethick3; DRAWTEXT(sel,HIGH*0.925,'卖'),colorffff00,linethick3; STICKLINE(买线>=卖线,LOW,HIGH,1,0),colorred; STICKLINE(买线>=卖线,CLOSE,OPEN,4.5,0),color0000aa; STICKLINE(买线>=卖线,CLOSE,OPEN,4,0),color0000cc; STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),color0000cc; STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),color0000ee; STICKLINE(买线<卖线,CLOSE,OPEN,4.5,0),coloraaaa00; STICKLINE(买线<卖线,CLOSE,OPEN,4,0),colorbbbb00; STICKLINE(买线<卖线,CLOSE,OPEN,3,0),colorcccc00; STICKLINE(买线<卖线,CLOSE,OPEN,2,0),coloreeee00; STICKLINE(买线<卖线,LOW,HIGH,1,0),colorffff00; STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,3,0),color00ffff; 指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick2,ColorFF00FF; 界: MA(CLOSE,27),linethick1,Color00FFFF; BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFFFFFF; 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); 波动回调提示图:MA(CLOSE,500); STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,color0000FF; STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,colorFF0000; DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'上拐点'),Color00FFFF; DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'下拐点'),Color00FF00; DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'回调!'),colorFFFFFF; 3、九哥背离 底背离 顶背离 底线 顶线 高风险区 看空 看多( 股 民 学 院 : http://www.58188.net ) DD:=C=HHV(C,180); CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,4,1),colorliblue; D:SMA(K,3,1),colormagenta; J:3*K-2*D,colormagenta; IF(J<D,J,DRAWNULL),COLORFFEE44; 0,colorred,LINETHICK2;20,colorlimagenta;{50,colorwhite;} 80,colorblue;100,colorgreen,LINETHICK2; A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1)); B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)); {DJ:=CROSS(J,D) AND D<20; DRAWTEXT(DJ,D-8,'低金叉'),colormagenta; DRAWTEXT(CROSS(D,J),D+10,'背离');} STICKLINE(1,20,20,100,0),LINETHICK2,colorgray; STICKLINE(1,50,50,100,0),colorgray; STICKLINE(1,80,80,100,0),LINETHICK2,colorgray; 底线:0,COLORFFFFFF; 顶线:100,COLORFFFFFF; DRAWICON(CROSS(J,K),K,1,); DRAWICON(CROSS(K,J),D,2,); A1:=BARSLAST(REF(CROSS(K,D),1)); 底背离:=REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D); DRAWTEXT(底背离,D-13,'KDJ底背'),colormagenta; A2:=BARSLAST(REF(CROSS(D,K),1)); 顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(K,A2+1)>K AND CROSS(D,K); DRAWTEXT(顶背离,D+10,'KDJ顶背'),colormagenta; VAR1:=REF(LOW,1); VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100; VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3); VAR4:=LLV(LOW,38); VAR5:=HHV(VAR3,38); VAR6:=IF(LLV(LOW,90),1,0); VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6; VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; VAR9:=SMA(VAR8,13,8); 风险:CEILING(SMA(VAR9,13,8)),LINETHICK2,colorgreen; 涨跌: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,colorred; Var1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100; 看空: SMA(Var1,2,1),LINETHICK2,colorliblue; Var2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 看多: SMA(Var2,5,1)-8,LINETHICK2,colorwhite; 高风险区: D1,colorgreen; 清仓线: D2,colorbrown; 安全区: D5,colorlimagenta; RSV:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100; T:SMA(RSV,36,12),coloryellow; Y:SMA(T,36,12),coloryellow; Z:3*T-2*Y,coloryellow; IF(Z<Y,Z,DRAWNULL),COLORFFEE44; DRAWICON(CROSS(Z,T),T,3,); DRAWICON(CROSS(T,Z),Y,22,); A1:=BARSLAST(REF(CROSS(T,Y),1)); 底背离:=REF(CLOSE,A1+1)>CLOSE AND T>REF(T,A1+1) AND CROSS(T,Y); DRAWTEXT(底背离,Y-13,'TYZ底背'),coloryellow; A2:=BARSLAST(REF(CROSS(Y,T),1)); 顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(T,A2+1)>T AND CROSS(Y,T); DRAWTEXT(顶背离,Y+10,'TYZ顶背'),coloryellow; TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/6; CCI:(TYP-MA(TYP,N))/(0.06*AVEDEV(TYP,N)),colorgreen; a:25,colorgreen; b:-25,colorgreen; |