资源描述:
《【股票指标公式下载】-【通达信】改进十指金叉(支撑、》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【通达信】改进十指金叉(支撑、下跌、持股)-指标公式源码N1:=3;N2:=5;N3:=9;N4:=13;N5:=21;N6:=34;DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);DEA:=EMA(DIFF,N2);DRAWICON(DIFF>DEA,1,1);X1:DRAWICON(DIFFDEA;RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;K:=S
2、MA(RSV1,N1,1);D:=SMA(K,N1,1);DRAWICON(K>D,2,1);X2:DRAWICON(KD;LC:=REF(CLOSE,1);RSI1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(ABS(CLOSE-LC),N2,1))*100;RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100;DRAWICON(RSI1>RSI2,3,1
3、);X3:DRAWICON(RSI1RSI2;RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;LWR1:=SMA(RSV,N1,1);LWR2:=SMA(LWR1,N1,1);DRAWICON(LWR1>LWR2,4,1);X4:DRAWICON(LWR14、R1>LWR2;BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;DRAWICON(CLOSE>BBI,5,1);X5:DRAWICON(CLOSEBBI;MTM:=CLOSE-REF(CLOSE,1);MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);MMM:=100*EMA(EMA(MTM,N4),N3)/EM
5、A(EMA(ABS(MTM),N4),N3);DRAWICON(MMS>MMM,6,1);X6:DRAWICON(MMSMMM;BIAS:=(C-MA(C,N2))/MA(C,N2);DIF:=(BIAS-REF(BIAS,16));DBCD:=SMA(DIF,76,1);MM:=MA(DBCD,5);DRAWICON(DBCD>MM,7,1);X7:DRAWICON(DBCD6、DBCD'),COLORFFFFFF;A7:=DBCD>MM;持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0,COLORRED;支撑:=LLV(持股,3),LINETHICK0,COLOR00FFFF;下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;{上面三行去了等号指标上面就有参数但图形去变了样
7、}转向:=CROSS(持股,下跌){AND下跌<30};MA1:=MA(持股,5);向下:=CROSS(MA1,持股)ANDMA1>80;DRAWICON(持股>下跌,8,1);X8:DRAWICON(持股<下跌,8,2);DRAWTEXT(ISLASTBAR=1,8,'.CGZ'),COLORFFFFFF;A8:=持股>下跌;MT:=C-REF(C,1);ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);MAZL:=MA(ZLGJ,5);DRAWICON(ZLGJ>MAZL,9,1);X9:DRAWICO