M1:=13;M2:=20;M3:=77;M4:=99;
MA1:MA(CLOSE,M1),LINETHICK2;
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MA(C,13),COLORWHITE;
MA(C,20),COLORYELLOW;
多头:STICKLINE(DIFF>DEA,C,O,3,-1),COLORRED;
STICKLINE(DIFF>DEA,H,L,0,0),COLORWHITE;
空头:STICKLINE(DIFF<=DEA,C,O,3,0),COLORWHITE;
STICKLINE(DIFF<=DEA,H,L,0,0),COLORWHITE;
{ Gupang.com 股-旁-网_通达信股票指标公式}
DRAWTEXT(crOSS(DIFF,DEA),L*0.98,’B’),COLORYELLOW;
DRAWTEXT(CROSS(DEA,DIFF),H*1.02,’S’),COLORGREEN;
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIFF1,9);
MA(C,13),COLORWHITE;
MA(C,20),COLORYELLOW;
多头1:STICKLINE(DIFF1>DEA1,C,O,3,0),COLORRED;
STICKLINE(DIFF>DEA1,H,L,0,0),COLORRED;
空头1:STICKLINE(DIFF1<=DEA1,C,O,3,0),COLORYELLOW;
STICKLINE(DIFF1<=DEA1,H,L,0,0),COLORYELLOW;
DRAWTEXT(CROSS(DIFF1,DEA1),L*0.98,’B’),COLORWHITE;
DRAWTEXT(CROSS(DEA1,DIFF1),H*1.02,’S’),COLORGREEN;KA0:=(HHV(C,13)-LLV(C,13))/13;
KA1:=SMA(C,3,1);
KA2:=SMA(C-KA0*3,3,1);
KA3:=SMA(KA1-KA0*3,3,1);
IF(KA2>=KA3,KA2,DRAWNULL ),LINETHICK2,COLORGREEN;
IF(KA2<KA3,KA2,DRAWNULL ),LINETHICK1,COLORBLUE;

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