龙虎榜macd(通达信公式 副图 源码 测试图)
龙虎榜,直接上图
DIF2:EMA(CLOSE,8) - EMA(CLOSE,57),COLORLICYAN;DEA2:EMA(DIF2,8),COLORWHITE;MACD:2*(DIF2-DEA2),COLORSTICK;IF(DIF2>REF(DIF2,1),DIF2,DRAWNULL),COLORMAGENTA,LINETHICK2;IF(DIF2>DEA2,DEA2,DRAWNULL),COLORYELLOW,LINETHICK2;STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORGREEN;STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORMAGENTA;STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORLIBLUE;VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));TYP:=(HIGH+LOW+CLOSE)/3;CCI
DRAWTEXT_FIX(1,0.0,0.8,0,STRCAT('敢死队席位:',EXTERNSTR(0,13))),COLORLIMAGENTA;