本人对指标蛮有兴趣,于是在坛子里一直在收集指标 深为的分享精神和互助精神而感动,下面是自己改的
通达信主图指标 名字自己取吧。
强弱K线
MA5:EMA(C,5),COLORWHITE;
MA13:EMA(C,13),COLORYELLOW;
MA34:EMA(C,34),COLORFF00FF;
MA78:EMA(C,78),COLOR00FF00;
MA99:EMA(C,99),COLOR0055FF;
ZG:=CONST(HHV(H,250)); ZD:=CONST(LLV(L,250));
DD:=INTPART((ZG+ZD)/2); RC:=CONST(DYNAINFO(3)-(DYNAINFO(3)-DD)/N);
S2:=EMA(C,12)-EMA(C,26); S6:=EMA(S2,50); DK:=2*(S2-S6);
STICKLINE(DK>0,RC,RC+DK,0,0),COLOR880088;
STICKLINE(DK<0,RC,RC+DK,0,0),COLOR888800;
Q:=C=LLV(C,4)AND(REF(C,1)<REF(C,2)OR REF(C,1)<REF(C,3))OR REF(C,1)=LLV(C,4)AND C<REF(C,2)OR REF(C,2)=LLV(C,4)AND REF(C,1)=HHV(C,4)AND C<REF(C,1)OR REF(C,3)=LLV(C,4)AND C<REF(C,1)AND C<REF(C,2);
W:=REF(C,1)=LLV(C,4)AND C>=REF(C,2)OR REF(C,2)=LLV(C,4)AND REF(C,1)<=REF(C,3)AND REF(C,2)<REF(C,4)AND C>=REF(C,1);
{青}
STICKLINE(OPEN>=C,C,OPEN,3.5,0),COLOR009900;
STICKLINE(OPEN>=C,C,OPEN,2.5,0),COLOR00BB00;
STICKLINE(OPEN>=C,C,OPEN,1.5,0),COLOR00DD00;
STICKLINE(OPEN>=C,C,OPEN,0.5,0),COLOR00FF00;
STICKLINE(OPEN>=C,C,OPEN,0.1,0),COLORCYAN;
{红}
STICKLINE(C>OPEN,C,OPEN,3.5,0),COLOR000077;
STICKLINE(C>OPEN,C,OPEN,2.5,0),COLOR000099;
STICKLINE(C>OPEN,C,OPEN,1.5,0),COLOR0000CC;
STICKLINE(C>OPEN,C,OPEN,0.5,0),COLOR0000FF;
STICKLINE(C>OPEN,C,OPEN,0.1,0),COLORCC66FF;
{粉}
STICKLINE(Q,OPEN,(OPEN+C)/2,3.5,0),COLOR770077;
STICKLINE(Q,OPEN,(OPEN+C)/2,2.5,0),COLOR990099;
STICKLINE(Q,OPEN,(OPEN+C)/2,1.5,0),COLORBB00BB;
STICKLINE(Q,OPEN,(OPEN+C)/2,0.5,0),COLORDD00DD;
STICKLINE(Q,OPEN,(OPEN+C)/2,0.1,0),COLORFF00FF;
{灰}
STICKLINE(W,OPEN,(OPEN+C)/2,3.5,0),COLOR777777;
STICKLINE(W,OPEN,(OPEN+C)/2,2.5,0),COLOR999999;
STICKLINE(W,OPEN,(OPEN+C)/2,1.5,0),COLORBBBBBB;
STICKLINE(W,OPEN,(OPEN+C)/2,0.5,0),COLORDDDDDD;
STICKLINE(W,OPEN,(OPEN+C)/2,0.1,0),COLORFFFFFF;
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;
I:=CROSS(J,D); S:=CROSS(D,J);
{金黄s立柱}
STICKLINE(I,OPEN,C,3.5,0),COLOR335555;
STICKLINE(I,OPEN,C,2.5.0,0),COLOR338888;
STICKLINE(I,OPEN,C,1.5,0),COLOR33AAAA;
STICKLINE(I,OPEN,C,0.5,0),COLOR33CCCC;
STICKLINE(I,OPEN,C,0,0),COLOR33EEEE;
{蓝色立柱}
STICKLINE(S,OPEN,C,3.5,0),COLORAA0000;
STICKLINE(S,OPEN,C,2.5,0),COLORCC0000;
STICKLINE(S,OPEN,C,1.5,0),COLORFF4400;
STICKLINE(S,OPEN,C,0.5,0),COLORFF8800;
STICKLINE(S,OPEN,C,0,0),COLORFFCC00;
{老鼠仓}
AX:=AMOUNT/V;BX:=L<AX*0.9; CX:=(C-REF(C,1))/REF(C,1)*100>1.2;
DZ:=L<MA(C,5)*0.921;EX:=V<MA(V,5)*1.5;
老鼠仓:=BX AND CX AND DZ AND EX,LINETHICK0;
DRAWTEXT(老鼠仓,(L*0.99),'↖老鼠仓'),COLOR40CCFF;
RA:=ZIG(3,10);
GG:=MA(RA,2);
DRAWICON(CROSS(GG,RA),H+0.1,15);
DRAWTEXT(CROSS(RA,GG),L*0.99,'↖买'),COLOR00FF00;
{涨跌停提示}
ZDF:=(C-REF(C,1))/REF(C,1)*100;
DRAWTEXT(C>=1.099*REF(C,1),C*1.01,'↙涨停'),COLORYELLOW;
DRAWTEXT(ZDF<-9.9,C*1.01,'↖跌停'),COLOR00FF00;
获利%:WINNER(C)*100,NODRAW,COLORFF00FF;
涨家数:INDEXADV,COLOR0000EE,NODRAW;
跌家数:INDEXDEC,COLOR00EE00,NODRAW; 大盘成交量:INDEXV,COLOR00EEEE,NODRAW;
上市日期年:REF(YEAR,BARSCOUNT(C)-1),NODRAW,COLOR0000FF;
月:REF(MONTH,BARSCOUNT(C)-1),NODRAW,COLORFF00FF;
|