DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9),COLORFFFF00;
macd:(DIFF-DEA)*15;
STICKLINE(MacD>=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORRED;
STICKLINE(MACD>=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLORGREEN;
STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORFF00FF;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1),0,MACD,1,0),COLOR00FFFF;
多转空:=((((LLV(MACD,4)>0) AND (MACD<REF(MACD,1))) AND (REF(MACD,1)>REF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));
{ _股票通达信指标公式}
空转多:=((((HHV(MACD,4)<0) AND (MACD>REF(MACD,1))) AND (REF(MACD,1)<REF(MACD,2))) AND (REF(MACD,2)<REF(MACD,3)));
DRAWICON(多转空,MACD,24);
DRAWICON(空转多,MACD,23);
bias13:MA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),3)*100,COLORCYAN,LINETHICK1;
BIAS21:MA((CLOSE-MA(CLOSE,21))/MA(CLOSE,21),21)*100;
IF(BIAS21<0,BIAS21,0),COLORGREEN,LINETHICK2;
IF(BIAS21>0,BIAS21,0),COLORRED,LINETHICK2;
DRAWICON(crOSS(BIAS13,REF(BIAS13,1)),BIAS13,1);
DRAWICON(CROSS(REF(BIAS13,1),BIAS13),BIAS13,2);
BIAS13>0,COLORYELLOW,LINETHICK2;
BIAS13<0,COLORBLUE,LINETHICK2;
IF(BIAS13>MA(BIAS13,2),BIAS13,DRAWNULL),COLORYELLOW,LINETHICK3;
IF(BIAS13<MA(BIAS13,2),BIAS13,DRAWNULL),COLORCYAN,DOTLINE;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)