jinzhe版主,能否再帮我想想办法,我不想用循环来代替
我想找个简捷的办法来代替hhvbars
如果用barslast计算个,
barslast(close>7)之类的直接条件,很简单,
但是一旦用间接引用
barslast(h=hhv(h,4),hhv的周期就跟着走了,是那天的H的周期,再向前3个周期来统计.不是我们要的当前周期为准.
runmode:0;
hh:hhv(h,4);
h1:=h;
if barpos>4 then begin
for i=0 to 3 do begin
if h1[barpos-i]=hh then begin
n:=i;
goto abc;
end
end
end
abc@ nn:n,linethick0;
用循环做的