代码里写如下语句,为什么在测试的时候会提示未来函数呢?
aa:xx[BARPOS-barslast(yy)];
老师,您这样试试!
if barpos<100 THEN exit;
cond1:=c>o;
wz1:BARSLAST(cond1),NODRAW,COLORWHITE;
for i:=0 to 10 DO
BEGIN
if i=5 then
xx:=c[barpos-i];
else
xx:=h[barpos-i];
end
aa:=xx[BARPOS-wz1];
if state=0 or aa>0 then
buy(close>open,1,thisclose);
sell(close<=open,100%,thisclose);
老师能解答一下吗?就这么些代码,怎么会有这种提示?