源码如下:
{boll五条线}{主图}
m20:ma(c,20);
s1:=STD(C,30);
zf:=(s1-ref(s1,1))/s1;
T:=INTPART(m20*(1+zf));
Ts:=Min(T,60);
Td:=max(T,20);
MID:MA(C,20),linethick1,COLORRED;
STICKLINE(MID>=ref(MID,1),MID,ref(MID,1),5,0),COLORRED;
STICKLINE(MID<ref(MID,1),MID,ref(MID,1),5,0),COLORffffff;
X:=STD(C,20);
up:MID + 2*X;
hi:MID + X;
lo:MID - X;
dn:MID - 2*X;
aa:hi;
if(aa>=ref(aa,1),aa,0),LINETHICK2,COLORyellow,circledot;
if(aa<ref(aa,1),aa,0),LINETHICK2,COLORff9900,circledot;
STICKLINE(C>aa,L,H,0.1,1),COLORRED;
STICKLINE(C>aa,C,O,4,1),COLORRED;
STICKLINE(C>aa,C,O,4,1),COLORRED;
STICKLINE(C<aa,C,O,4,1),COLORFFFF00;
STICKLINE(C<aa,C,O,4,1),COLOR00FF00;
STICKLINE(C<aa,L,H,0.1,1),COLOR00FF00;
|
|
|
|
|