资源描述:
《【股票指标公式下载】-【通达信】改良优化MACD(抄底、动力、主动、主拉、主拉)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、【通达信】改良优化MACD(抄底、动力、主动、主拉、主拉)-指标公式源码DIFF:MA(CLOSE,12)-MA(CLOSE,26),COLORFFFFFF,LINETHICK2,COLORFF7F00;DEA:MA(DIFF,9),COLOR00FFFF,LINETHICK2,COLORFF7F00;DRAWBAND(DIFF,RGB(155,50,50),DEA,RGB(0,100,50));MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK1;抄底:IF((TROUGHBARS(3,15,1)=0)AND(HIGH>LOW+0.01),0.15
2、,(-0)),COLOR00FF00,LINETHICK1;中区:0,COLORYELLOW,LINETHICK1;动力:MA(MACD,5),,COLORYELLOW,LINETHICK2;主动:IF(MACD>=动力AND动力<=中区,动力,DRAWNULL),COLORYELLOW,LINETHICK2;主拉:IF(动力>=中区,动力,DRAWNULL),COLORRED,LINETHICK2;翻空:IF(动力<中区AND动力>MACD,动力,DRAWNULL),COLORGREEN,LINETHICK2;中区10:0,COLORFFFF00,LINETHICK1;动力
3、10:MA(MACD,10),COLORFFFF00,LINETHICK2;主动10:IF(MACD>=动力10AND动力10<=中区10,动力10,DRAWNULL),COLORFFFF00,LINETHICK2;主拉10:IF(动力10>=中区10,动力10,DRAWNULL),COLORFF43B9,LINETHICK2;翻空10:IF(动力10<中区10AND动力10>MACD,动力10,DRAWNULL),COLOR00FF00,LINETHICK2;STICKLINE(MACD>REF(MACD,1)ANDMACD>0,0,MACD,1,0),COLORRED;S
4、TICKLINE(MACD>REF(MACD,1)ANDMACD<0,0,MACD,1,0),COLORRED;STICKLINE(MACD[0,0,MACD,1,0),COLORGREEN;STICKLINE(MACD][=DEA,DIFF,DRAWNULL),COLORRED;着:IF(DEA>=DIFF,DEA,DRAWNULL),COLORFF9900;冷:IF(DIFF>=DEA,DEA,DRAWNULL),COLOR00F]
5、FFF;静:IF(DEA>=DIFF,DIFF,DRAWNULL),COLOR00FF00;AA:=BARSLAST(REF(CROSS(DIFF,DEA),1));BB:=REF(CLOSE,AA+1)>CLOSEANDDIFF>REF(DIFF,AA+1)ANDCROSS(DIFF,DEA);乐:DRAWLINE(AA=0,DEA,BB,DEA,0),COLOR0000FF;STICKLINE(BB,-0.2,0.2,0,1),COLORFFFFFF;主升:DIFF>0ANDDIFF>DEA,COLOR0000FF,POINTDOT,NODRAW;STICKLINE(主升
6、,DIFF,DEA,5,0),COLORFF00FF;DRAWICON(CROSS(DIFF,DEA),DIFF,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);【通达信】改良优化MACD(抄底、动力、主动、主拉、主拉)-指标公式效果图下载次数:02010-12-1111:43下载(65.59KB)2010-12-1111:41(文档来源:若水财经社区)