Board logo

标题: macd5 [打印本页]

作者: 679089    时间: 2013-1-21 16:38     标题: macd5

本帖最后由 679089 于 2013-1-21 20:00 编辑

DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);
DEA:EMA(DIF,7),LINETHICK1,COLORFFFFFF;
MACD:=2*(DIF-DEA);
QDIF:IF(DEA,DIF,DRAWNULL),COLORRED,LINETHICK2;
D:=BACKSET(DIF<REF(DIF,1),2);
RDIF:IF(D ,DIF,DRAWNULL),COLOR33FF33,LINETHICK2;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR0000FF;
STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,0,0),COLORFFFF00;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLORFF99FF;
STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,0,0),COLORFFFF00;
金叉:=CROSS(DIF,DEA) AND DIF<0.3,COLOR0000FF;
DRAWICON((CROSS(DIF,DEA) AND DIF<0.3),0,1);




欢迎光临 VV娱乐社区论坛 (http://bbs.51vv.com/) Powered by Discuz! 7.0.0