资源描述:
《【股票指标公式下载】-【通达信】完美主图(动能趋势线、涨家数、跌家数、涨停)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【股票指标公式下载】-【通达信】完美主图(动能趋势线、涨家数、跌家数、涨停)【通达信】完美主图(动能趋势线、涨家数、跌家数、涨停)-指标公式源码DRAWTEXT(CROSS(MA(C,10),MA(C,20)),H,''),LTNETHICK2;DRAWBAND(MA(C,3),RGB(230,0,250),HHV(MA(C,5),10),RGB(0,100,150));MA5:MA(CLOSE,5);MAIO:MA(CLOSE,10);MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CL
2、OSE,60),CIRCLEDOT;MA120:MA(CLOSE,120),CIRCLEDOT;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);Y:=1F(CROSS(J,REF(J+0.01,1))ANDXANDJ<20,30,0);主力:=EMA((CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2);散户:=EMA((CLOSE-MA(CLOSE,20
3、))/MA(CLOSE,20),7);VAR2:=LLV(LOW,10);VAR3:=HHV(HTGH,25);动能趋势线:=100*EMA((CL0SE-VAR2)/(VAR3-VAR2),4);DRAWTEXT(CROSS(动能趋势线,70),HIGH*1.02,'险'),COLORGREEN;DRAWTEXT(CROSS(动能趋势线,80),HIGH*l.02,'减'),COLOROOFFOO;DRAWTEXT(CROSS(动能趋势线,87.5),HIGH*1.02,'出局*),COLORWHITE;DRAWTEXT(CR
4、OSS(J,REF(J+O.01,1))ANDXANDJ<20,LOW,'短进'),COLORFFOOFF;DRAWTEXT(CROSS(主力,散户)AND主力<0AXD散户<0,LOW,1见底'),COLORRED;DRAWICON(CROSS(主力,散户)AND主力〈0AXD散户<0,LOW,1);涨家数:INDEXADV,NODRAW,COLORRED;跌家数:1NDEXDEC,NODRAW,COLORGREEN;{涨跌停显示}涨停:=IF((C-REF(C,1))*1OO/REF(C,1)>=(10~0.01*1OO/R
5、EF(0,1)),1,0);STICKLINE(涨停,0,C,3,0),COLORYELLOW;ZDF:=(C-REF(C,1))/REF(C,1)*100;STTCKIJNE(ZDF<-9.9,0,C,3,0),COLORGREEN;Z'SSS.MFA口GSCOM{以下为K线上色}STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,3,0),COLOROOOQ55;STICKLINE(CLOSE>
6、STICKLINE(CLOSE>STTCKIJNE(CLOSE>STICKLINE(CLOSE>STICKLINE(CLOSE>REF(CLOSE,1)REF(CLOSE,1)REF(CLOSE,1)REF(CLOSE,1)REF(CLOSE,1),OPEN,CLOSE,2.7,0,OPEN,CLOSE,2.1,0,OPEN,CLOSE,1.5,0,OPEN,CLOSE,0.9,0,OPEN,CLOSE,0.3,0),COLOR000077;),COLOR000099;),COLOROOOOBB;),COLOROOOODD;),
7、COLOROOOOFF;STICKLIXE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORWHITE;,OPEN,CLOSE,2.7,0,OPEN,CLOSE,2.1,0,OPEN,CLOSE,1.5,0,OPEN,CLOSE,0.9,0),C0L0R777777;),C0L0R999999;),COLORBBBBBB;),COLORDDDDDD;STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),C0L0R555555;STICKLIXE(CLOSE=REF(
8、CLOSE,1)STTCKLINE(CLOSE=REF(CLOSE,1)STICKLINE(CLOSE=REF(CLOSE,1)STICKLINE(CLOSE=REF(CLOSE,1)STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE