咨詢內(nèi)容:
MACD12日和20日交叉后向上走顯示為紅色,向下走顯示為綠色 怎么設(shè)置 ?
MACD12日和20日交叉后向上走顯示為紅色,向下走顯示為綠色
怎么設(shè)置
?
?
?來源:程序化99網(wǎng)( www.kzuj.com.cn )
博易技術(shù)人員:
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA ?: EMA(DIFF,9);
MACD := 2*(DIFF-DEA), COLORSTICK;
STICKLINE(DIFF>=DEA AND DIFF>REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORRED;
STICKLINE(DIFF>=DEA AND DIFF<REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORGREEN;
STICKLINE(DIFF<DEA AND DIFF>REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORRED;
STICKLINE(DIFF<DEA AND DIFF<REF(DIFF,1),0,2*(DIFF-DEA),1,0),COLORGREEN;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
DRAWKLINEEX(DIFF>DEA,H,O,L,C),COLOR0000FF;
DRAWKLINEEX(DIFF<DEA,H,O,L,C),COLOR00FF00;
DRAWKLINEEX(DIFF=DEA,H,O,L,C),COLORFFFFFF;
來源 程序化久久網(wǎng)