SHORT:=12;LONG:=26;MID:=9;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
macd:(DIF-DEA)*2,COLORSTICK;
A1:=crOSS(DEA,DIF);
A2:=BArslAST(CROSS(DIF,DEA));
死叉:IF(A1,INTPART((C/REF(C,A2)-1)*100)/10,0),COLOR00FF00;
{ _通达信股票指标公式}
DRAWICON(CROSS(DIF,DEA),0,1);{1号图标显示红箭头};下破0轴: REF(DIF,1)>0 AND DIF<0,COLORCYAN;空中加油:REF("MacD.DIF",1)<REF("MACD.DIF",2) AND REF("MACD.MACD",1)<REF("MACD.MACD",2)
AND REF("MACD.DIF",1)-REF("MACD.DEA",1)>0
AND REF("MACD.DIF",1)<"MACD.DIF"
AND REF("MACD.DIF",1)-REF("MACD.DEA",1)<0.03
AND REF("MACD.MACD",1)<"MACD.MACD",COLORRED;

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