您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:通达信精准主图指标

通达信精准主图指标


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:5.00 KB
更新时间:2013-09-25 07:58:00
公式简介:




VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,POINTDOT,LINETHICK3;
买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,POINTDOT,LINETHICK3;
DRAWBAND(卖出,RGB(0,80,60),买入,RGB(0,0,0));

操盘线:=EMA(EMA(EMA(CLOSE,2),2),2);
趋势线:(MA(操盘线,5))DOTLINE,COLORWHITE;
YM:EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3,48),COLORRED,LINETHICK1;
YM1:=EMA(YM,5),COLORRED,LINETHICK1;
YM2:=EMA(YM1,5),COLORRED,LINETHICK1;
IF(YM>=YM2,YM,DRAWNULL),LINETHICK1,COLORRED;
IF(YM>=YM2,YM1,DRAWNULL),LINETHICK1,COLORRED;
IF(YM<=YM2,YM,DRAWNULL),LINETHICK1,COLORGREEN;
IF(YM<=YM2,YM1,DRAWNULL),LINETHICK1,COLORGREEN;
HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;
LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
D90H:=EMA(HH,90),COLORRED,LINETHICK1;
D90L:=EMA(LL,90),COLORRED,LINETHICK1;
D90:(D90H+D90L)/2,COLORWHITE,LINETHICK1;
D1:=EMA(D90,10),COLORWHITE,LINETHICK1;
D2:=EMA(D1,10),COLORWHITE,LINETHICK1;

IF(EMA((CLOSE+HIGH+LOW)/3,5)>=D90,D90,DRAWNULL),LINETHICK1,COLORLIRED;
IF(EMA((CLOSE+HIGH+LOW)/3,5)>=D90,D1,DRAWNULL),LINETHICK1,COLORLIRED;

G0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))+XMA(XMA(H,25),25);
D0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25));
DTD:=(D0+G0)/2>=(D90H+D90L)/2;
STICKLINE(L<D0 AND DTD=1 AND YM>YM1,L,D0,3,0),COLORMAGENTA;

止损线: EMA(COST(81),10) COLORYELLOW,DOTLINE;
牛熊线: EMA(COST(27),120), CIRCLEDOT;
{MA60:MA(CLOSE,60)LINETHICK2,COLORCYAN;}

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
幅度:100*(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),2,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),2,0),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;
STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(C,买入) OR (L<买入),LOW*0.95,'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(C,卖出) OR (H>卖出),HIGH*1.02,'S'),COLORGREEN;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;

QGA1:=REF(C,10)==HHV(C,2*10+1);
QGB1:=FILTER(QGA1,10);
QGC1:=BACKSET(QGB1,10+1);
HD:=FILTER(QGC1,10);
QDA2:=REF(C,10)==LLV(C,2*10+1);
QDB2:=FILTER(QDA2,10);
QDC2:=BACKSET(QDB2,10+1);
LD:=FILTER(QDC2,10);
前期高位:REF(C,BARSLAST(HD)),POINTDOT,COLORFFFFFF;
STICKLINE(C,前期高位,前期高位,8,0),COLORFFFFFF;
前期低位:REF(C,BARSLAST(LD)),NODRAW,COLORRED;
STICKLINE(C,前期低位,前期低位,8,0),COLORRED;


涨停:=IF(REF(C,1)*1.095-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
DRAWTEXT(涨停,L-0.1,'涨停'),COLORRED;

C3:=REF(C,1);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE;
STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;
DRAWTEXT(跌停,H+0.3,'跌停'),COLORYELLOW;


DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA1:=(DIF-DEA)*2*60;
起爆:=CROSS(AAA1-REF(AAA1,1),15),COLORRED,LINETHICK2;
DRAWTEXT(起爆,L*0.99,'↖起爆'),COLORYELLOW,LINETHICK2;
 


 



 


[url=http://www.goodgupiao.com/gupiaogongshi/31041.html][B]通达信精准主图指标[/B][/url]