炒股指标

显示 收起

通达信绝代双骄MACD指标公式

通达信绝代双骄MACD指标公式:含有未来函数

DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED;
 DEA:EMA(DIF,9);DEF:=2*(DIF-DEA);
 MACD:(DIF-DEA)*2,COLORSTICK;
 进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK1;
 K1:=BACKSET(进退有据<REF(进退有据,1),2);
 速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK1;
 K2:=BACKSET(DIF<REF(DIF,1),2);
 畏法度:IF(K2,DIF,DRAWNULL),COLORLIBLUE,LINETHICK1;
 红柱持股:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED,LINETHICK1;
 绿柱持币:IF(MACD<REF(MACD,1),MACD,DRAWNULL),STICK,COLORLIBLUE,LINETHICK2;
 日:=IF(DEF>0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);
 月:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);
 天堂:DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,DEA,'←天'),COLORFF00FF;
 加油:DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,DEA,'←加'),COLORYELLOW;
 地狱:DRAWTEXT(CROSS(DEA,DIF) AND DIF<0,DEA,'←地'),COLOR00CC33;
 末日:DRAWTEXT(CROSS(DEA,DIF) AND DIF>0,DEA,'←末'),COLORLIBLUE;
 卖出:DRAWICON(FILTER(日,3) AND 日,DEF+0.03,8);
 钱袋:DRAWICON(FILTER(月,3) AND 月,DEF-0.03,9);
金叉:DRAWICON(CROSS(DIF,DEA),DEA,1);
 死叉:DRAWICON(CROSS(DEA,DIF),DEA,2);

通达信绝代双骄MACD指标公式实例图解:

通达信绝代双骄MACD指标公式