资源描述:
《通达信指标源码公式均线+MACD+KDJ+成交量+趋势线共振指标》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、通达信均线+MACD+KDJ+成交量+趋势线共振指标MACD+均线思路主图:MA8:EMA(CLOSE,8),COLORLIBLUEZLINETHICK1;MA25:EMA(CLOSE,25),COLORBLUE丄INETHICK1;MA55:EMA(CLOSE,55),COLORLICYAN,LINETHICK1;IF(EMA(C,8)>=REF(EMA(C8),UEMA(C,8),DRAWNULL),COLORRED;IF(EMA(C,25)>=REF(EMA(C,25)Z1)ZEMA(C,25
2、)ZDRAWNULL),COLORRED;IF(EMA(C,55)>=REF(EMA(C,55),1),EMA(C,55),DRAWNULL),COLORRED;X3:=EMA(CLOSE,55);STICKLINE(((C>=X3)AND(C>=0)),HzL,Ozl),COLOROOOOAA;STICKLINE(((C>=X3)AND(C>=0))zOzC,3zO),COLOROOOOAA;STICKLINE(((C>=X3)AND(C>=0)),OzC,2.3zO),COLOROOOOCC;S
3、TICKLINE(((C>=X3)AND(C>=0)),OzC,1.8zO)zCOLOROOOOFF;STICKLINE(((C>=X3)AND(C>=0)),0zCz1,0),COLORCC66FF;STICKLINE(((C>=X3)AND(C<=0)),HzL,Ozl),COLOROOOOAA;STICKLINE(((C>=X3)AND(C<=0))zOzC,3zO),COLOROOOOAA;STICKLINE(((C>=X3)AND(C<=0)),0,C,2.3zO)zCOLOROOOOCC
4、;STICKLINE(((C>=X3)AND(C<=0)),OzC,1.8zO)zCOLOROOOOFF;STICKLINE(((C>=X3)AND(C<=0)),0zCz1,0),COLORCC66FF;STICKLINE(((C<=X3)AND(C>=O))zH,L,0zl),COLORFF6600;STICKLINE(((C<=X3)AND(C>=O))zO,C,3,0),COLORFF6600;STICKLINE(((C<=X3)AND(C>=O)),O,Cz2.3z0)zCOLORFF99
5、00;STICKLINE(((C<=X3)AND(C>=0)),OzC,1.8zO)zCOLORFFCCOO;STICKLINE(((C<=X3)AND(C>=O)),0/C,l/0),COLORFFFFOO;STICKLINE(((C<=X3)AND(C<=0))ZH,L,0,0),COLORFF6600;STICKLINE(((C<=X3)AND(C<=O))zOzC,3z0),COLORFF6600;STICKLINE(((C<=X3)AND(C<=O)),O,Cz2.3z0)zCOLORFF
6、9900;STICKLINE(((C<=X3)AND(C<=0)),OzC,1.8zO)zCOLORFFCCOO;STICKLINE(((C<=X3)AND(C<=O)),0/C,l/0),COLORFFFFOO;Zl:=REF(H,8)=HHV(Hz2*8+1);Yl:=FILTER(Zlz8);X1:=BACKSET(Y1,8+1);W1:=FILTER(X1Z8);{高点}R11:=BACKSET(ISLASTBAR,BARSUST(W1)+1);S11:=R11>REF(R11Z1);DR
7、AWLINE(W1,HZS11ZH,1)ZCOLORBLACKZLINETHICK2;Z2:=REF(L,8)=LLV(L,2*8+1);Y2:=FILTER(Z2,8);X2:=BACKSET(Y2,8+1);W2:=FILTER(X2,8);{低点}T11:=BACKSET(ISLASTBAR,BARSLAST(W2)+1);U11:=T11>REF(T11,1);DRAWLINE(W2,L,U11丄,1),COLORBLACK丄INETHICK2;M:=INTPART(3*8/5);Z12:=
8、REF(HzM)=HHV(H,2*M+l);Y12:=FILTER(Z12,M);X12:=BACKSET(Y12,M+1);W12:=FILTER(X12,M);{高点}R112:=BACKSET(ISLASTBAR,BARSLAST(W12)+1);SU2:=R112>REF(R112,1);DRAWLINE(W12,H,S112ZH,1),COLORREDZLINETHICK2;Z22:=REF(L,M)=LLV(Lz2*M+l);Y22:=FILTER(Z22