「翔博精选指标」黄金MACD(通达信公式 副图 源码 测试图)
2021-12-29原创 编 辑:翔博软件
{黄金MACD}
MACD2:(EXPMA(CLOSE,30)-REF(EXPMA(CLOSE,30),1))/REF(EXPMA(CLOSE,30),1)*100,COLORSTICK;
DIF2:EMA(SUM(MACD2,2),5),LINETHICK2,COLORYELLOW;
入1:IF(DIF2>REF(DIF2,1),DIF2,DRAWNULL),COLORRED,LINETHICK2;
入2:IF(DIF2<REF(DIF2,1),DIF2,DRAWNULL),COLOR00FF00,LINETHICK2;
DEA2:MA(DIF2,5),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,'百万盈利'),COLORRED;
获利盘:WINNER(C)*100,COLORRED,NODRAW;
套牢盘:100-WINNER(C)*100,COLORGREEN,NODRAW;
条件:=获利盘>90;
MACD2:(EXPMA(CLOSE,30)-REF(EXPMA(CLOSE,30),1))/REF(EXPMA(CLOSE,30),1)*100,COLORSTICK;
DIF2:EMA(SUM(MACD2,2),5),LINETHICK2,COLORYELLOW;
入1:IF(DIF2>REF(DIF2,1),DIF2,DRAWNULL),COLORRED,LINETHICK2;
入2:IF(DIF2<REF(DIF2,1),DIF2,DRAWNULL),COLOR00FF00,LINETHICK2;
DEA2:MA(DIF2,5),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,'百万盈利'),COLORRED;
获利盘:WINNER(C)*100,COLORRED,NODRAW;
套牢盘:100-WINNER(C)*100,COLORGREEN,NODRAW;
条件:=获利盘>90;
STICKLINE(条件,MACD,0,1,0),COLORYELLOW;