variable:hld=0;
fkc:=c;
mhn:=h;
mln:=l;
r1:=ref(mhn,1);
r2:=ref(mln,1);
if barpos>=6 then begin
if fkc>r1 then hld:=1;
if fkc<r2 then hld:=-1;
end
hh:hld;
hilo:IF(hld=-1,mhn,mln);
variable:hld=0; fkc:= c; mhn:=h; mln:=l; for i=6+1 to DATACOUNT do begin IF fkc[i]>mhn[i-1] then hld[i]:=1; else IF fkc[i]<mln[i-1] then hld[i]:=-1; else hld[i]:=hld[i-1]; end; hilo:IF(hld=-1,mhn,mln); |