实筹(副图,源码)
AVGG:0;
股龄:BARSCOUNT(CLOSE),LINETHICK0,colorFF;
SVOL:=VOL;
MAC:=EMA(CLOSE,N);
HH:=HHV(CLOSE,D);
LL:=LLV(CLOSE,D);
START:=-CLOSE;
C0:=(HH-LL)/10;
C1:=LL+C0*1;
C2:=LL+C0*2;
C3:=LL+C0*3;
C4:=LL+C0*4;
C5:=LL+C0*5;
C6:=LL+C0*6;
C7:=LL+C0*7;
C8:=LL+C0*8;
C9:=LL+C0*9;
V1:0,LINETHICK8,colorFFFFFF;
V2:0,LINETHICK8,colorFF0000;
V3:0,LINETHICK8,colorFF;
V4:0,colorFFFFFF;
V5:0,colorFF0000;
V6:0,colorFF;
V7:0,LINEDOT,colorFFFFFF;
V8:0,LINEDOT,colorFF0000;
V9:0,LINEDOT,colorFF;
V10:0;
<%
svol=ffl.vardata("svol")
ma=ffl.vardata("mac")
age=ffl.vardata("股龄")
start=ffl.vardata("start")
nLast = UBound( ma )
dd=ffl.vardata("d") '参数D
h=ffl.vardata("hh")
l=ffl.vardata("ll")
c1=ffl.vardata("c1")
c2=ffl.vardata("c2")
c3=ffl.vardata("c3")
c4=ffl.vardata("c4")
c5=ffl.vardata("c5")
c6=ffl.vardata("c6")
c7=ffl.vardata("c7")
c8=ffl.vardata("c8")
c9=ffl.vardata("c9")
dim v1
dim v2
dim v3
dim v4
dim v5
dim v6
dim v7
dim v8
dim v9
dim v10
v1=0
v2=0
v3=0
v4=0
v5=0
v6=0
v7=0
v8=0
v9=0
v10=0
for i=nlast-dd to nlast
if ma(i)<c1(nlast) then
v1=v1+svol(i)
end if
if ma(i)<c2(nlast) and ma(i)>=c1(nlast) then
v2=v2+svol(i)
end if
if ma(i)<c3(nlast) and ma(i)>=c2(nlast) then
v3=v3+svol(i)
end if
if ma(i)<c4(nlast) and ma(i)>=c3(nlast) then
v4=v4+svol(i)
end if
if ma(i)<c5(nlast) and ma(i)>=c4(nlast) then
v5=v5+svol(i)
end if
if ma(i)<c6(nlast) and ma(i)>=c5(nlast) then
v6=v6+svol(i)
end if
if ma(i)<c7(nlast) and ma(i)>=c6(nlast) then
v7=v7+svol(i)
end if
if ma(i)<c8(nlast) and ma(i)>=c7(nlast) then
v8=v8+svol(i)
end if
if ma(i)<c9(nlast) and ma(i)>=c8(nlast) then
v9=v9+svol(i)
end if
if ma(i)<=h(nlast) and ma(i)>=c9(nlast) then
v10=v10+svol(i)
end if
next
avgg=(v1+v2+v3+v4+v5+v6+v7+v8+v9+v10)/10
ffl.vardata("v1")=v1
ffl.vardata("v2")=v2
ffl.vardata("v3")=v3
ffl.vardata("v4")=v4
ffl.vardata("v5")=v5
ffl.vardata("v6")=v6
ffl.vardata("v7")=v7
ffl.vardata("v8")=v8
ffl.vardata("v9")=v9
ffl.vardata("v10")=v10
ffl.vardata("avgg")=avgg
start(nlast-dd)=1
ffl.vardata("start")=start
%>
DRAWICON(AVGG>0,AVGG,7);
STICKLINE(START=1,0,V1,20,0),colorFFFF;
STICKLINE(START=1,0,V2,20,0),colorFFFF;
STICKLINE(START=1,0,V3,20,0),colorFFFF;
STICKLINE(START=1,0,V4,20,0),colorFFFF;
唉,这公式,我都看不懂....