通达信公式源码 通达信MACD共振公式源码
2015-3-27 10:44:26 股票入门 http://rumen.southmoney.com
DIF30:=EMA(CLOSE*100,12)-EMA(CLOSE*100,26);
DEA30:=EMA(DIF30,9);
MACD0030:=(DIF30-DEA30)*2,COLORSTICK;
做多30:=DIF30》REF(DIF30,1);
做多31:=DEA30》REF(DEA30,1);
DIF60:=EMA(CLOSE*100,24)-EMA(CLOSE*100,52);
DEA60:=EMA(DIF60,9);
MACD0060:=(DIF60-DEA60)*2,COLORSTICK;
做多60:=DIF60》REF(DIF60,1);
做多61:=DEA60》REF(DEA60,1);
DIF日:=EMA(CLOSE*100,77)-EMA(CLOSE*100,208);
DEA日:=EMA(DIF日,32);
MACD00日:=(DIF日-DEA日)*2,COLORSTICK;
做多日:=DIF日》REF(DIF日,1);
做多日1:=DEA日》REF(DEA日,1);
DIF周:=EMA(CLOSE*100,480)-EMA(CLOSE*100,1040);
DEA周:=EMA(DIF周,66);
MACD00周:=(DIF周-DEA周)*2,COLORSTICK;
做多周:=DIF周》REF(DIF周,1);
-72,COLOR222222;
MACD30:-90,COLORGRAY,LINETHICK2;
MACD60:-108,COLORGRAY,LINETHICK2;
MACD日:-126,COLORGRAY,LINETHICK2;
MACD周:-144,COLORGRAY,LINETHICK2;
-158,COLOR222222;
IF(做多30,MACD30,DRAWNULL),COLORRED,LINETHICK8;
IF(做多60,MACD60,DRAWNULL),COLOR0066CC,LINETHICK8;
IF(做多日,MACD日,DRAWNULL),COLOR0066CC,LINETHICK9;
IF(做多周,MACD周,DRAWNULL),COLOR0066CC,LINETHICK9;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。