VARIABLE:sj=0,sjh=0,bj=0,bjh=0;//进场
if holding =1 and bjh=1 and holding<2 then begin
s多进2仓:buy(t1 and y1,1,MARKETR);
end
if holding=1 and sjh=1 and holding<2 then BEGIN
b多进2仓:buy(t2 and y1,1,marketr);
end
if (holding=0 and t1 and y1) or(holding=0 and t2 and y1) then begin
多进:buy(1,1,MARKETR);
end
if sj=0 and sjh=0 and (t1 and y1)then begin
sj:=c;
sjh:=1;
end
if bj=0 and bjh=0 and (t2 and y1) then begin
bj:=c;
bjh:=1;
end
为什么变量窗口 没有赋值显示 赋值失败的原因是什么
VARIABLE:sj:=0,sjh:=0,bj:=0,bjh:=0;
然后这个全局变量你要显示出来。
你得再单独输出下,否则不显示的。
s:sj;