通达信MACD换手指标公式
通达信暗夜厮守选股指标公式
通达信MACD换手指标公式:
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),COLORWHITE;
DEA:EMA(DIFF,9),COLORYELLOW;
macd:2*(DIFF-DEA), COLORstICK,LINETHICK4;
红柱天数:BArslAST(MacD<0),COLORRED,LINETHICK0 NODRAW;
绿柱天:=BARSLAST(MACD>0) NODRAW;
绿柱天数:REF(绿柱天,1),COLORGREEN,LINETHICK0 NODRAW;
HSL100:=SUM(vol/CAPITAL*100,BARSLAST(crOSS(DIFF,DEA))+1)-VOL/CAPITAL*100;
HSL101:=SUM(VOL/CAPITAL*100,BARSLAST(CROSS(DEA,DIFF))+1)-VOL/CAPITAL*100;
HSL102:=SUM(VOL/CAPITAL*100,BARSLAST(CROSS(DIFF,DEA))+1);
HSL103:=SUM(VOL/CAPITAL*100,BARSLAST(CROSS(DEA,DIFF))+1);
DRAWNUMBER(CROSS(DEA,DIFF),0.2,ROUND(HSL100)),COLORRED;
DRAWNUMBER(CROSS(DIFF,DEA),-0.05,ROUND(HSL101)),COLORGREEN;
DRAWNUMBER(MACD>0 AND ISLASTBAR,0.2,ROUND(HSL102)),COLORYELLOW;
DRAWNUMBER(MACD<0 AND ISLASTBAR,-0.05,ROUND(HSL103)),COLORYELLOW;
通达信猛虎追击指标公式