以下是通达信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;
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/BARSLAST(CROSS(DIFF,DEA)))*100)/100),COLORRED;
DRAWNUMBER(CROSS(DIFF,DEA),-0.05,ROUND((HSL101/BARSLAST(CROSS(DEA,DIFF)))*100)/100),COLORGREEN;
DRAWNUMBER(MACD>0 AND ISLASTBAR,MACD,ROUND((HSL102/(BARSLAST(CROSS(DIFF,DEA))+1))*100)/100),COLORRED;
DRAWNUMBER(MACD<0 AND ISLASTBAR,-0.05,ROUND((HSL103/(BARSLAST(CROSS(DEA,DIFF))+1))*100)/100),COLORGREEN;

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