DIFF : EMA(CLOSE,6) – EMA(CLOSE,13);
DEA : EMA(DIFF,9);
macd : 2*(DIFF-DEA), COLORSTICK;
A1:=BArslAST(REF(crOSS(DIFF,DEA ),1));
DRAWTEXT(REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA)>0 ,DIFF,’M’),COLOR00FFFF;{MacD底背离};
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
DRAWTEXT(REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF)>0,DIFF,’M’),COLOR00FF00;{MACD顶背离};

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