软件名称:[B]趋势主图[/B]
软件类型:国产软件
运行环境:Win9X/2000/XP/2003/
软件语言:简体中文
授权方式:解密版
软件大小:6.00 KB
官方主页:Home Page
更新时间:2009-01-21 20:38:58
软件简介:
趋势主图
input:N(3);
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,POINTDOT,COLORFFFFFF;
BBI2:BBI+3*STD(BBI,10),POINTDOT,COLORFFFFFF;
BBI3:BBI-3*STD(BBI,10),POINTDOT,COLORFFFFFF;
X2:=EMA(EMA((CLOSE+LOW+HIGH)/3,3),23);
X3:=REF(X2,1);
PARTLINE(X2>X3,X2),LINETHICK2,color0000BB;
PARTLINE(X2<X3,X2),LINETHICK2,color00FF00;
B1:=MA(CLOSE,1);
B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1) ;
SMA2:=MA(B2,3) ;
FILLRGN(b2>sma2,b2,sma2),color0000FF;
FILLRGN(b2<sma2,b2,sma2),color00FF00;
VAR9Q:=CLOSE=HHV(CLOSE,4) AND (REF(CLOSE,1)>=REF(CLOSE,2) OR REF(CLOSE,1)>=REF(CLOSE,3)) OR REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE>=REF(CLOSE,2) OR REF(CLOSE,2)=HHV(CLOSE,4) AND REF(CLOSE,3)=LLV(CLOSE,4) AND CLOSE>=REF(CLOSE,1) OR REF(CLOSE,3)=HHV(CLOSE,4) AND CLOSE>=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
红持:VAR9Q,LINETHICK0,colorFF;
VARAQ:=CLOSE=HHV(CLOSE,4) AND REF(CLOSE,1)=LLV(CLOSE,4);
粉变:VARAQ,LINETHICK0,colorFF99FF;
VARBQ:=CLOSE=LLV(CLOSE,4) AND (REF(CLOSE,1)<REF(CLOSE,2) OR REF(CLOSE,1)<REF(CLOSE,3)) OR REF(CLOSE,1)=LLV(CLOSE,4) AND CLOSE<REF(CLOSE,2) OR REF(CLOSE,2)=LLV(CLOSE,4) AND REF(CLOSE,1)<>HHV(CLOSE,4) AND CLOSE<REF(CLOSE,1) OR REF(CLOSE,3)=LLV(CLOSE,4) AND CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
灰跌:VARBQ,LINETHICK0,color888888;
VARCQ:=REF(CLOSE,1)=LLV(CLOSE,4) AND CLOSE>=REF(CLOSE,2) OR REF(CLOSE,2)=LLV(CLOSE,4) AND REF(CLOSE,1)<=REF(CLOSE,3) AND REF(CLOSE,2)<REF(CLOSE,4) AND CLOSE>=REF(CLOSE,1);
绿买:VARCQ,LINETHICK0,colorFF00;
VARDQ:=REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE<REF(CLOSE,2) OR (REF(CLOSE,2)=HHV(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,3) OR REF(CLOSE,3)=HHV(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,2)) AND REF(CLOSE,2)>=REF(CLOSE,4) AND CLOSE<REF(CLOSE,1);
蓝抛:VARDQ,LINETHICK0,colorFF9900;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),colorFF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0),colorFF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5,0),colorFF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5,0),colorFF00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8,0),colorFF7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6,0),colorFF9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5,0),colorFFBB00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),colorFFCC00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),colorFFDD00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),colorFFEE00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),colorFFFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),color55;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0),color66;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),color77;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),color99;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),colorBB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),colorDD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),colorFF;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,8,0),color77;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,6,0),color88;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,5,0),colorAA;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,4,0),colorCC;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,2,0),colorFF;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,0,0),colorFFFFFF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,8,0),colorFF11FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,6,0),colorFF33FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,5,0),colorFF55FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,4,0),colorFF77FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,3,0),colorFF99FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,2,0),colorFFBBFF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,1,0),colorFFDDFF;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,8,0),color333333;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,6,0),color555555;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,5,0),color777777;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,4,0),color999999;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,3,0),colorBBBBBB;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,2,0),colorDDDDDD;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,1,0),colorFFFFFF;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,8,0),color3300;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,6,0),color5500;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,5,0),color7700;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,4,0),color9900;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,3,0),colorBB00;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,2,0),colorDD00;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,1,0),colorFF00;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,8,0),colorFF1100;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,6,0),colorFF3300;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,5,0),colorFF5500;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,4,0),colorFF7700;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,3,0),colorFF9900;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,2,0),colorFFBB00;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,1,0),colorFFDD00;
A1:=REF(H,N)=HHV(H,2*N+1); B1:=FILTER(A1,N); C1:=BACKSET(B1,N+1); D1:=FILTER(C1,N);{高点}
A2:=REF(L,N)=LLV(L,2*N+1); B2:=FILTER(A2,N); C2:=BACKSET(B2,N+1); D2:=FILTER(C2,N);{低点}
E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;
L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));
G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1),LINETHICK0;{过滤后低点}
L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;
X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));
G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1),LINETHICK0;{过滤后高点}
///HD:="jgb.HD"(N);LD:="jgb.LD"(N);
R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1); S1:=R1>REF(R1,1); {前一高}
T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); U1:=T1>REF(T1,1); {前一低}
R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); S2:=R2>REF(R2,1); {前二高}
T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2); U2:=T2>REF(T2,1); {前二低}
T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2); U3:=T3>REF(T3,1); {前三低}
T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2); U4:=T4>REF(T4,1); {前四低}
R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2); S3:=R3>REF(R3,1); {前三高}
R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2); S4:=R4>REF(R4,1); {前四高}
DRAWLINE(S2,H,S1,H,1),Color00AAAA;
DRAWLINE(U2,L,U1,L,1),Color00AAAA;
DRAWLINE(S3,H,S2,H,1),Color006000;
DRAWLINE(U3,L,U2,L,1),Color006000;
DRAWLINE(S4,H,S3,H,1),Color0000AA;
DRAWLINE(U4,L,U3,L,1),Color0000AA;
底:=SUM(MA(CLOSE,10),9)/11.114;
DRAWTEXT(CROSS(LOW,底) AND REF(底,1)>REF(HIGH,1) OR CROSS(HIGH,底),0.85*CLOSE,'---铁底'),colorFF00;
X1:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X2:=EMA(X1,10);
X3:=REF(X2,1);
X4:=(REF(HIGH,1)+REF(LOW,1))/2;
X5:=MA(CLOSE,21)+2*STD(CLOSE,21);
X6:=REF(CLOSE,1);
X7:=(SMA(MAX(CLOSE-X6,0),7,1))/(SMA(ABS(CLOSE-X6),7,1))*100;
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);
WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);
WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);
WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;
DK:=SMA(WZ4,3,1)*1.5;
DD:=SMA(DK,3,1);
DJ:=3*DK-2*DD;
WZ5:=EMA(CLOSE,12)-EMA(CLOSE,26);
WZ6:=EMA(WZ5,9);
WZ7:=2*(WZ5-WZ6);
WZ8:=REF(WZ7,1);
WZ9:=CROSS(WZ8,WZ7) AND WZ8>0;
VAR1T:=EMA(CLOSE,8);
VAR2T:=EMA(VAR1T,20);
VAR3T:=CROSS(VAR1T,VAR2T);
VAR4T:=VAR1T<MA(CLOSE,120);
VAR5T:=(HHV(HIGH,3
[url=http://www.70822.com/soft/sort013/sort02/down-5745.html]趋势主图[/url]