macd全景(通达信公式 副图 源码 测试图)
macd全景
觉得还不错,拿来分享,有未来,但信号不漂移,用来作参考还可以
VAR1:=(2*CLOSE+HIGH+LOW)/4;VAR2:=EXPMA(EXPMA(EXPMA(VAR1,4),4),4);J:(VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;D:MA(J,3),COLORBLUE,LINETHICK2;K:MA(J,1),COLORRED,LINETHICK2;XD:=IF(BACKSET(J>0,1),1,DRAWNULL);XD1:=IF(LAST(XD=1,3,3),1,DRAWNULL);DRAWTEXT(FILTER(COUNT(XD1 AND(CROSS(D,K)),12)=2,8)AND CROSS(D,K),D,'必卖'),COLORBLUE;DRAWTEXT(FILTER(CROSS(D,K)AND J>0.2,5),D+0.09,'死叉');DRAWTEXT(CROSS(K,0),-0.03,'加仓'),COLORYELLOW;JJ:=(C*2+H+L)/4;DIFF:=EMA(JJ,13)-EMA(JJ,21);长DEA:EMA(DIFF,3),NODRAW;长DEA2:EMA(DIFF,10),NODRAW;XC:=长DEA-长DEA2;STICKLINE(XC>=REF(XC,1),0,0,2,0),COLOR1000FF;STICKLINE(XC<REF(XC,1),0,0,2,0),COLORFFFF00;DRAWBAND(长DEA,RGB(250,250,0),长DEA2,RGB(0,120,0));短DIFF1:EMA(C,7)-EMA(C,21),COLORYELLOW,LINETHICK2;短DIFF2:EMA((0.668*REF(短DIFF1,1)+0.333*短DIFF1),1),COLORBLUE,LINETHICK2;
不错的内容! 这是什么东东啊 功德无量!
页:
[1]