input: n(0);
fc:=c;
mhn:=hhv(h,n);
mln:=llv(l,n);
if( BarPos<n) then
hld:=drawnull;
else
hld[0]:=0;
if( BarPos>n) then
begin
if fc>mhn[1] then
hld:=1;
else if fc<mln[1] then
hld:=-1;
else
hld:=hld[1];
end;
金字塔通不过?
旧的交易系统转为新的自动模式,出现偏移,就是K线一移动信号就移动?
input: n(0);
fc:=c;
mhn:=hhv(h,n);
mln:=llv(l,n);
hld:=if(barpos>n,0,drawnull) ;
if( BarPos>n) then
begin
if fc>mhn[1] then
hld:=1;
else if fc<mln[1] then
hld:=-1;
else
hld:=hld[1];
end;
mhn[1]是想表示上一个周期的值?
金字塔里是 ref(mhn,1) 而不是mhn[1] 不同软件处理不同,你别搞混了
对上一个周期