fh:=h; fl:=l; up:=0*c; dn:=0*c; t1:=0*c; t2:=0*c;
IF NOT(ISLASTBAR) THEN EXIT;
for i=1 to datacount do begin
if i=1 and fh[i]>fh[i-1]
then
dn[i]:=fl[i];
up[i]:=fl[i];
if i>1 then
up[i]:=up[i-1];
dn[i]:=dn[i-1];
序列模式转逐K模式;
VARIABLE: t1=0, t2=0, up:=0; dn:=0;
if barpos =0 and h>hh then
dn := l; up := l;
if barpos >1 then
dn := dn[BARPOS-1];
up := up[BARPOS-1];
有差异?,问题在哪?
代码不全,无法编译,看不到结果
[此贴子已经被作者于2017-1-4 13:11:12编辑过]