交易是开仓一次还是平仓一次
是图表还是后台交易
variable:bj=0;
if 开仓条件 and holding=0 and bj=0 then begin
buy(1,1,market);
bj:=1;
end
这里写平仓语句
if time=closetime(0) then bj:=0;