通达信【MACD高低点画线】指标
閫氳揪淇°怣ACD楂樹綆鐐圭敾绾裤戞寚鏍
MACD楂樹綆鐐圭敾绾挎寚鏍囷紙鍓浘 閫氳揪淇 璐村浘锛夌粰澶у皬澶氱┖杞崲鐢荤嚎锛屽皬杞ぇ涓庡ぇ杞皬锛屼娇鐢ㄦ妧宸х伒娲绘簮鐮 NNN:=STRCAT(CON2STR(YEAR,0),' 骞 '); YYY:=STRCAT(CON2STR(MONTH,0),' 鏈 '); RRR:=STRCAT(CON2STR(DAY,0),' 鏃 '); WWW:=STRCAT('鏄熸湡',CON2STR(WEEKDAY,0)); SSS:=STRCAT(STRCAT(STRCAT(NNN,YYY), RRR),WWW); DRAWTEXT_FIX(C>0,0.77,0,0,SSS);DRAWTEXT_FIX(C>0,0.004,1,0,DYBLOCK),COLORYELLOW,LINETHICK2;DRAWTEXT_FIX(C>0,0.06,1,0,HYBLOCK),COLORRED,LINETHICK2;DRAWTEXT_FIX(C>0,0.12,1,0,GNBLOCK),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.88,5,0,',COLORYELLOW;蹇噺 EMA(CLOSE,12) - EMA(CLOSE,26));鎱㈤噺:EMA(蹇噺,9),COLOR00FFFF;MACD:=2*(蹇噺-鎱㈤噺);璧勯噾绾:=HHV(MACD,1)*0.98,LINETHICK1,COLORRED;璧勯噾3鏃ョ嚎:=HHV(MACD,3)*0.98,LINETHICK1;璧勯噾5鏃ョ嚎:=HHV(MACD,5)*0.98,COLORWHITE,LINETHICK1;鎸佽偂:=IF(璧勯噾绾>=REF(璧勯噾绾,1) AND 璧勯噾3鏃ョ嚎>=璧勯噾绾 AND 璧勯噾3鏃ョ嚎>=REF(璧勯噾3鏃ョ嚎,1) AND 璧勯噾3鏃ョ嚎=璧勯噾5鏃ョ嚎,1.5,0),COLORWHITE;{DRAWICON(REF(鎸佽偂<1.5,1) AND 鎸佽偂,璧勯噾绾,1);DRAWICON(REF(璧勯噾绾=璧勯噾5鏃ョ嚎,1) AND 璧勯噾绾<璧勯噾5鏃ョ嚎,璧勯噾5鏃ョ嚎,2);}楠戠墰鎶鏈:0,COLORGRAY;STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,3,0),COLORRED;STICKLINE(MACD>0 AND MACDREF(MACD,1),MACD,0,3,0),COLORFFFFFF;STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,3,0 ),COLORFFAA00;STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,3.3 ,0 ),COLORFFBB11;STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,2.2,0 ),COLORF