您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:分析下大盘上证指数 在送一个短线主图指标

分析下大盘上证指数 在送一个短线主图指标


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2015-03-30 22:45:00
公式简介:

N:=20;
MID:=MA(C,N);
VAR1:=POW((C-MID),2);
VAR2:=MA(VAR1,N);
VAR3:=SQRT(VAR2);
UPPER:=MID+2*VAR3;
LOWER:=MID-2*VAR3;
BOLL1:=REF(MID,1);
UB:=REF(UPPER,1);
LB:=REF(LOWER,1);
BLJX:=(C-LB)/(UB-LB);
GL:=100*(C-MA(C,12))/MA(C,12);
GL1:=EMA(GL,5);
BBW:=EMA(BLJX,5);
BBW1:=EMA(BBW,2);
GL_Z:=100*(C-MA(C,60))/MA(C,60);
GL1_Z:=EMA(GL,25);
BBW_Z:=EMA(BLJX,25);
BBW1_Z:=EMA(BBW,10);
E:=GL_Z>=GL1_Z AND BBW_Z>BBW1_Z;
A:=(C/REF(C,1)>1.02);
B:=REF(C,1)<REF(MA(C,20),1);
DRAWICON(CROSS(BBW,BBW1)AND A AND B AND GL>=GL1 AND E AND
REF(MA(V,2),1)<REF(MA(V,3),2) AND COUNT(REF(VOL,1)<=LLV(VOL,8),4),L-0.1,16);

SG:EMA(HHV(H,1),8),COLORMAGENTA;
X1:EMA(CLOSE,8),COLORYELLOW;
JJ:=(H+L+3*C)/5;
VAR21:=EMA(JJ,5);VAR22:=EMA(JJ,13);VAR23:=EMA(JJ,21);VAR24:=EMA(JJ,34);H1A:=(VAR21+VAR22+VAR23+VAR24)/4;
成本和谐:MA(H1A,5),COLORRED,LINETHICK2;
X4:EMA(X1,50*3),COLORWHITE,CIRCLEDOT,LINETHICK2;
X6:EMA(X1,50*5),COLORMAGENTA,LINETHICK4;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(X4>X6 AND CROSS(84,RSI), HIGH*1.02,'卖!'),COLORYELLOW;
DRAWTEXT(X4<X6 AND CROSS(80,RSI), HIGH*1.02,'卖!'),COLORYELLOW;
LL:=LLV(C,100),COLORGRAY;
X11:STICKLINE(成本和谐>REF(成本和谐,1) , 成本和谐*0.998,成本和谐*1.002,8,0),COLORRED,LINETHICK2;
X30:=X1<REF(X1,1) AND C<X1;
X31:STICKLINE(SG<REF(SG,1) OR X30, SG*0.998,SG*1.004,8,0),COLORBLUE,LINETHICK3;
X21:STICKLINE(成本和谐<REF(成本和谐,1) , 成本和谐*0.998,成本和谐*1.002,8,0),COLORGRAY,LINETHICK4;
X66:EMA(X1,50*3),COLORGREEN,CIRCLEDOT;
TJ:=IF((C-REF(C,1))/REF(C,1)>0.025,1,0);
STICKLINE(C>REF(O,BARSLAST(TJ =1)),REF(O,BARSLAST(TJ =1)),REF(O,BARSLAST(TJ =1)),10,0),COLORGREEN;{www.goodgupiao.com}
M1:=EMA(C,5);
M2:=EMA(C,13);
M3:=EMA(C,34);
MC1:=EMA(C,55);
MC2:=EMA(C,89);
MA4:=EMA(C,144);
短线:IF(M1>MAX(M2,M3),M1,IF(M1<MIN(M2,M3),M2,M3)),COLOR00FF00,LINETHICK2;
短强:IF(短线>REF(短线,1),短线,DRAWNULL),COLORYELLOW,LINETHICK2;
长线:IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<MIN(MC2,MA4),MC2,MA4)),COLORFFFF00,LINETHICK2;
长强:IF(长线>REF(长线,1),长线,DRAWNULL),COLORRED,LINETHICK2;
DRAWICON(短线>长线 AND L<长线 AND C>短线 AND C>O,L*0.98,1);
DRAWICON(CROSS(MIN(短线,长线),C),H*1.02,2);

{股市上涨}
{N:1 100 5 M:1 100 13}
{MA5:MA(C,N);{,COLORWHITE;}
MA18:=MA(CLOSE,18);
{MA13:MA(C,M);{,COLORGREEN,LINETHICK2;}
VAR111:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
VAR222:=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);
VAR333:=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);
AAA:=(3*C+L+O+H)/6;
VAR4:=(20*AAA+19*REF(AAA,1)+18*REF(AAA,2)+17*REF(AAA,3)+16*REF
(AAA,4)+15*REF(AAA,5)+
14*REF(AAA,6)+13*REF(AAA,7)+12*REF(AAA,8)+11*REF(AAA,9)+10*REF
(AAA,10)+9*REF(AAA,11)+8*REF(AAA,12)
+7*REF(AAA,13)+6*REF(AAA,14)+5*REF(AAA,15)+4*REF(AAA,16)+3*REF
(AAA,17)+2*REF(AAA,18)+REF(AAA,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(VAR4,13);
卖:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORGREEN;
买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.03,'买'),COLORRED;
加仓:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
DRAWTEXT(FILTER((CROSS(加仓,0) OR CROSS(CLOSE,CB)) AND 买=1,3),LOW-
0.03,'加'),COLORWHITE;
跟:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);
DRAWTEXT(跟,LOW*0.96,'跟'),COLORCC66FF;
上高点:HHV(C,30);{,LINETHICK2,COLORGREEN;};


 



[url=http://www.goodgupiao.com/gupiaogongshi/36708.html][B]分析下大盘上证指数 在送一个短线主图指标[/B][/url]