{个股MACD【副图指标】02 知博陋室自用副图MACD指标02号} {参数设置: SHORT 2 200 12 LONG 2 200 26 MID 2 200 9} DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORGREEN,LINETHICK1; DEA:EMA(DIF,MID)COLORFFFF33,LINETHICK1; MACD:(DIF-DEA)*2,COLORSTICK; 标柱1:STICKLINE(MACD>REF(MACD,1) AND MACD>0,0.0001,MACD,1,0),COLORRED; 标柱2:STICKLINE(MACD<=ref(macd,1) and="" macd="">0,0.0001,MACD,1,0),COLORYELLOW;<!--=ref(macd,1)--> 标柱3:STICKLINE(MACD<REF(MACD,1) AND MACD<0,-0.0001,MACD,1,0),COLORGREEN; 标柱4:STICKLINE(MACD>=REF(MACD,1) AND MACD<0,-0.0001,MACD,1,0),COLORLICYAN; 标柱5:STICKLINE(C>0,0,0,50,1),COLORBLUE; 标柱6:STICKLINE(MACD>0,0,-0.0001,8,0),COLORRED; 标柱7:STICKLINE(MACD<0,0,-0.0001,8,0),COLORGREEN; 强:IF(DIF>MA(DIF,2),DIF,DRAWNULL),COLORRED,LINETHICK1; 弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORFF00FF,LINETHICK1; 0,COLORLICYAN; 上穿:=DRAWICON(CROSS(REF(DIF,0),0),0,42); 标识:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS(REF(DIF,0),0),0.90,0.01,0,"MACD上穿了0 轴★★★")COLORRED; 低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1; JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0)); 二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; A1:=BARSLAST(REF(CROSS(DIF,DEA),1)); 底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA); 底背离连线:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,DOTLINE; A2:=BARSLAST(REF(CROSS(DEA,DIF),1)); 顶背离:=REF(CLOSE,A2+1)<close and="">DIF AND CROSS(DEA,DIF);</close> 顶背离连线:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,DOTLINE; MACDD跌破0轴:=CROSS(0,REF(DIF,0)); 标识00:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND MACDD跌破0轴 AND REF(DIF,0)<(-0.01),0.78,0.00,0,"友情提示:该股已经进入空头时段,注意规避空头陷阱。 ☆☆☆ ")COLORCYAN; 标识01:=STICKLINE(低位金叉,0,0.08,3,0),COLORYELLOW; 标识02:=DRAWTEXT(低位金叉,-0.46," 低位金叉"),COLOR0088FF; 标识03:=STICKLINE(二次金叉,0,0.06,3,0),COLORFF00FF; 标识04:=DRAWICON(二次金叉,DEA*0.9,1) ; 标识05:=DRAWTEXT(二次金叉,0.2," 二次金叉"),COLORYELLOW; 标识06:=STICKLINE(底背离,0,0.56,3,0),COLOR00FF00; 标识07:=DRAWTEXT(底背离,-0.66," 底背离"),COLORFF00FF; 标识08:DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,-0.26,"三全项"),COLOR0000FF,LINETHICK2; VAR1:=(CLOSE*2+HIGH+LOW)/4; VAR2:=EMA(VAR1,13)-EMA(VAR1,34); VAR3:=EMA(VAR2,5); 主力控盘_笑脸:2*(VAR2-VAR3)*3.8,DOTLINE,COLORRED,NODRAW; 主力弃盘:(-2)*(VAR2-VAR3)*3.8,DOTLINE,COLORYELLOW,NODRAW; 主力上穿:DRAWICON(CROSS(REF(主力控盘,0),REF(主力弃盘,0)),0,5); {所属板块} 附加1:=DRAWTEXT_FIX(1,0.02,25,0,"所属板块:"),COLORFF6000; 附加2:=DRAWTEXT_FIX(1,0.06,25,0,HYBLOCK),COLORRED; 附加3:=DRAWTEXT_FIX(1,0.12,25,0,DYBLOCK),COLORYELLOW; {用法注释} D1:=1; AA1:=DRAWGBK(" ★★★ 指标运用要旨:"买小、卖小"; "缩头,缩脚"。",".",".",".",".","."); AA1图标:DRAWTEXT_FIX(D1=1,0.01,0.02,0,AA1),COLORRED; D2:=1; AA2:=DRAWGBK(" 买,要买在变小了的"阴线能量柱柱堆"之"缩脚"处。",".",".",".",".","."); AA2图标:DRAWTEXT_FIX(D2=1,0.01,0.10,0,AA2),COLORLIBLUE; D3:=1; AA3:=DRAWGBK(" 卖,要卖在变小了的"阳线能量柱柱堆"之"缩头"处。",".",".",".",".","."); AA3图标:DRAWTEXT_FIX(D3=1,0.01,0.18,0,AA3),COLORYELLOW; D4:=1; AA4:=DRAWGBK(" 运用该指标,请使用周K线看盘。如此,胜算率较高。",".",".",".",".","."); AA4图标:DRAWTEXT_FIX(D4=1,0.01,0.26,0,AA4),COLORMAGENTA;