variable:dd=0;
upper:stkindi('','boll.upper',0,datatype);
lower:stkindi('','boll.lower',0,datatype);
if 开仓条件 and holding=0 then begin
buy(1,1,market);
dd:=date;
end
if enterbars>0 and date>dd and hhv(openprofit,enterbars+1)/multiplier>200 and c<lower then sell(1,0,market);