{MACD金叉} {參數(shù)設(shè)置:SHORT 2 200 13 LONG 2 200 154 MID 2 200 9} DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:EMA(DIF,MID); MACD:(DIF-DEA)*2,COLORSTICK; 標(biāo)柱1:STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.1,0),COLORRED; 標(biāo)柱2:STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.1,0),COLORYELLOW; 標(biāo)柱3:STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0.1,0),COLORCYAN; 標(biāo)柱4:STICKLINE(MACD>=REF(MACD,1) AND MACD<0,0,MACD,0.1,0),COLORGREEN; 標(biāo)柱5:STICKLINE(C>0,0,0,50,1),COLORBLUE; DIF,COLORGREEN; DEA,COLORYELLOW; 強(qiáng):IF(DIF>MA(DIF,2),DIF,DRAWNULL),COLORRED; 弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA; A1:=BARSLAST(REF(CROSS(DIF,DEA),1)); 底背離:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA); 底背離符號:DRAWTEXT(底背離,DEA*0.9-0.1,'▲'),COLORMAGENTA; 底背:DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORFF00FF,DOTLINE; A2:=BARSLAST(REF(CROSS(DEA,DIF),1)); 頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF); 頂背:DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,DOTLINE; JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0)); 低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1; 二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; 二次金叉符號:DRAWICON(二次金叉,DEA*0.9,1) ; 多頭共振符號:DRAWTEXT(低位金叉 AND 二次金叉 AND 底背離,0.25,'共振'),COLOR0000FF; 說明: 日線MACD的一個長期參數(shù),對于研判大盤的中長期走勢有非常好的幫助,現(xiàn)在拿出來無私奉獻(xiàn)給大家,希望對大家有用,只要你覺得不是水貨,就頂一下,讓更多的人看到。 1:MACD(13 ,154,9) 2:用它數(shù)波浪將不再困難。 3:用它可以判斷一個中期波段絕對的頂和絕對的底。 4:在這里金叉和死叉將非常值錢。 |
|