源码

{发了N次的MACD*}
{DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);}
DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);
DEA:EMA(DIF,7),LINETHICK1,COLORFFFFFF;
MACD:=2*(DIF-DEA);
QDIF:IF(DIF>DEA,DIF,0),COLORRED,LINETHICK;
PARTLINE(DIF>DEA,DIF),COLORRED,LINETHICK2;
RDIF:IF(DIF<DEA,DIF,0),COLOR33FF33,LINETHICK;
PARTLINE(DIF<DEA,DIF),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,LINETHICK;
DRAWICON((CROSS(DIF,DEA) AND DIF<0.3),0,1);


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。