通達(dá)信----【最牛MACD】副圖指標(biāo) 工其事,必先利其器,MACD指標(biāo)在實(shí)戰(zhàn)操作中的參考性不言而喻,老股友一般都常用MACD結(jié)合KDJ來判斷個(gè)G走勢(shì),今天給大家分享的MACD副圖是一位有十幾年經(jīng)驗(yàn)的老股友所贈(zèng),里面加入了各種信號(hào),如鈍化信號(hào),結(jié)構(gòu)形成信號(hào),抄底信號(hào),大牛信號(hào)等,信號(hào)明確,無未來函數(shù),用了多年,至今都還在用。使用方法非常簡(jiǎn)單,一看就明白,希望能幫到朋友們,一起驗(yàn)證討論。奉上源碼: SS:=12; LL:=26; MM:=9; N:=10; {DIF1:=100*(EMA(CLOSE,SS)-EMA(CLOSE,LL)); DEA1:=EMA(DIF1,MM); DRAWBAND(DIF1,RGB(155,50,50),DEA1,RGB(0,100,50));} DIF:=100*(EMA(CLOSE,SS)-EMA(CLOSE,LL)),COLORWHITE; DEA:=EMA(DIF,MM),COLORYELLOW; DRAWBAND(DIF,RGB(155,50,50),DEA,RGB(0,100,50)); {DRAWBAND(DIF,RGB(255,0,0),DEA,RGB(0,100,50));} MACD:(DIF-DEA)*2,COLORSTICK; MACD120:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,120))),COLORRED,LINETHICK1; MACD250:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLORGREEN,LINETHICK1; XG:=NOT(REF(MACD120,1)=MACD120); STICKLINE(XG,0,MACD,1,0),COLORYELLOW; STICKLINE(MACD>=MACD250,MACD250,MACD,1,0),COLORMAGENTA; 大行情:=NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250; {DRAWTEXT(XG,0,'↖金柱'),COLORYELLOW;} DRAWTEXT(大行情,0,'↖大牛啟動(dòng)'),COLORYELLOW; _抄底:ABS((CROSS('MACD.DIF','MACD.DEA') &&'MACD.DEA'<=-0.07)*'MACD.DIF')*1.50,COLORLIMAGENTA; _DIF:'MACD.DIF',COLORWHITE; _DEA:'MACD.DEA',COLORYELLOW; __強(qiáng)度:IF(DIF>DEA,DIF,DRAWNULL),COLORRED,LINETHICK2; _強(qiáng)度:IF(DEA<DIF,DEA,DRAWNULL),COLORMAGENTA,LINETHICK2; DRAWTEXT(ABS(_抄底)>0,_抄底*1.20,' 抄底'),COLORYELLOW; DRAWICON(ABS(_抄底)>0,_抄底*1.10,4); DRAWICON(CROSS(DIF,DEA),DEA,1); DRAWICON(CROSS(DEA,DIF),DEA,2); 死叉:=CROSS(DEA,DIF); N1:=BARSLAST(死叉); N2:=REF(BARSLAST(死叉),N1+1); N3:=REF(BARSLAST(死叉),N2+N1+2); CL1:=LLV(C,N1+1); DIFL1:=LLV(DIF,N1+1); CL2:=REF(CL1,N1+1); DIFL2:=REF(DIFL1,N1+1); CL3:=REF(CL2,N1+1); DIFL3:=REF(DIFL2,N1+1); |
|