软件名称:[B]画趋势线[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:2.00 KB
官方主页:Home Page
更新时间:2011-06-27 04:33:24
软件简介:
参数n=30
DRAWTEXT(SYSPARAM(2)=BARPOS,C,'板块:'+BLKNAME),COLORCCFFFF,ALIGN4;
Z:=ZIG(3,N);P:=SYSPARAM(1);
DD:="XH-Z.DD"(N); WD:=BARSLAST(DD);
SD:=SUM(DD,0); DI:=SD[P]-SD+1; ID:=(DI<REF(DI,1))*DI;
GG:="XH-Z.GG"(N); WG:=BARSLAST(GG);
SG:=SUM(GG,0); GI:=SG[P]-SG+1; IG:=(GI<REF(GI,1))*GI;
TD0:=BARSLAST(DI[P]=ID);
TD1:=BARSLAST(1+DI[P]=ID);
TD2:=BARSLAST(2+DI[P]=ID);
X:REF(Z,TD0),POINTDOT;
K1:(X-REF(Z,TD1))/REF(TD1,TD0)*100,LINETHICK0,COLORGREEN;
K3:(REF(Z,TD1)-REF(Z,TD2))/REF(TD2,TD1)*100,LINETHICK0,COLOR5E7159;
X1:X+TD0*K1/100,LINETHICK0,COLORGREEN;
X2:REF(Z,TD1)+TD1*K3/100,LINETHICK0,COLOR5E7159;
DRAWLINE(1+DI[P]=ID,Z,DI[P]=ID,Z,1),COLORGREEN;
DRAWLINE(2+DI[P]=ID,Z,1+DI[P]=ID,Z,1),COLOR5E7159,POINTDOT;
TG0:=BARSLAST(GI[P]=IG);
TG1:=BARSLAST(1+GI[P]=IG);
TG2:=BARSLAST(2+GI[P]=IG);
S:REF(Z,TG0),POINTDOT;
K2:(S-REF(Z,TG1))/REF(TG1,TG0)*100,LINETHICK0,COLORMAGENTA;
K4:(REF(Z,TG1)-REF(Z,TG2))/REF(TG2,TG1)*100,LINETHICK0,COLOR546C82;
S1:S+TG0*K2/100,LINETHICK0,COLORMAGENTA;
S2:REF(Z,TG1)+TG1*K4/100,LINETHICK0,COLOR546C82;
DRAWLINE(1+GI[P]=IG,Z,GI[P]=IG,Z,1),COLORMAGENTA;
DRAWLINE(2+GI[P]=IG,Z,1+GI[P]=IG,Z,1),COLOR546C82,POINTDOT;
DRAWICON((DD AND DI<5) OR (GG AND GI<5),Z,12);
DRAWICON(DI[P]=ID OR GI[P]=IG,Z,10);
[url=http://www.70822.com/soft/sort013/sort02/down-35437.html]画趋势线[/url]