MACD和KDJ金叉共振指标 说明: MACD和KDJ 同时金叉共振!配合15分钟的底背离和CCI上穿-100,成功率极高! 仅供参考,所有指标都不能独立完成市场研判。( 股民学院: http://www.58188.com ) DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),colorwhite; DEA:EMA(DIFF,M),colorffaa00; MACD:2*(DIFF-DEA),colorcyan; STICKLINE(MACD>=0,MACD,0,4,1),colorf00ff0; STICKLINE(MACD<0,MACD,0,4,1),colorwhite; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),color00aaff; X1:IF(diff<0,diff,0),linethick2,color0000ff; X2:IF(diff<0,0,diff),linethick1,colormagenta; X3:IF(diff<dea,diff,dea),linethick2,color00ff00; X4:IF(diff>dea,dea,dea),linethick2,colorblue; STICKLINE(DIFF>DEA,0,1.5*(DIFF-DEA),0,0),colorred; STICKLINE(DIFF<DEA,0,1.5*(DIFF-DEA),0,0),colorffff00; DRAWICON(CROSS(DIFF,DEA),DEA,1); DRAWICON(CROSS(DEA,DIFF),DEA,2); JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); 二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; DRAWTEXT(二次金叉,DEA-0.15,'▲-->二次金叉'),colorff00ff; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)); K:SMA(RSV,M1,1),colorwhite; D:SMA(K,M2,1),coloryellow; J:3*K-2*D,colorliblue; DRAWICON(CROSS(K,D),D,1); DRAWICON(CROSS(D,K),D,2); JX:=CROSS(DIFF,DEA) AND CROSS(K,D) AND CROSS(J,D); DRAWICON(JX,0,1); JX1:=CROSS(DIFF,DEA) AND CROSS(K,D); JX2:=X1; IF(DEA<0,JX2=DEA,DRAWNULL); STICKLINE(JX1,JX2-0.35,J+0.2,1,0),linethick1,COLOR0099FF; DRAWTEXT(JX1,JX2-0.35,'★金叉共振'),COLOR0099FF; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); B1:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); M底背:=FILTER(B1>0,5); DRAWLINE(A1=0,DEA,M底背,DEA,0),linethick2,colorred; DRAWTEXT(M底背,DEA*1.0,'-->MACD底背'),colorblue; C1:=BARSLAST(REF(CROSS(DEA,DIFF),1)); D1:=REF(CLOSE,C1+1)<CLOSE AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF); M顶背:=FILTER(D1>0,5); DRAWLINE(C1=0,DEA,M顶背,DEA,0),linethick2,colorgreen; DRAWTEXT(M顶背,DEA*1.2,'-->MACD顶背'),colorgreen; A2:=BARSLAST(REF(CROSS(K,D),1)); B2:=REF(CLOSE,A2+1)>CLOSE AND REF(K,A2+1)<K AND CROSS(K,D); K底背:=FILTER(B2>0,5); DRAWLINE(A2=0,D,K底背,D,0),linethick2,colorred; DRAWTEXT(K底背,D*1.0,'-->KDJ底背'),colorblue; C2:=BARSLAST(REF(CROSS(D,K),1)); D2:=REF(CLOSE,C2+1)<CLOSE AND REF(K,C2+1)>K AND CROSS(D,K); K顶背:=FILTER(D2>0,5); DRAWLINE(C2=0,D,K顶背,D,0),linethick2,colorligreen; DRAWTEXT(K顶背,D*1.2,'-->KDJ顶背'),colorligreen; |
下一篇:主力清仓抄底(同花顺公式)