咨詢內(nèi)容:老師辛苦了,請您把這個改成后臺運行的模型 if cc2>0 and l<lo then begin pc:=min(max(holding,0),cang2); kc:=cang2-pc; if pc>0 then sell(1,pc,limitr,min(o,lo-0.2)-0.6); if kc>0 then buyshort(1,kc,limitr,min(o,lo-0.2)-0.6); cc2:=0; end if cc2<0 and h>hi then begin pc:=min(abs(min(holding,0)),cang2); kc:=cang2-pc; if pc>0 then sellshort(1,pc,limitr,max(o,hi+0.2)+0.6); if kc>0 then buy(1,kc,limitr,max(o,hi+0.2)+0.6); cc2:=0; end if cc2=0 and h>hi then begin pc:=min(abs(min(holding,0)),cang2); kc:=cang2-pc; if pc>0 then sellshort(1,pc,limitr,max(o,hi+0.2)+0.6); if kc>0 then buy(1,kc,limitr,max(o,hi+0.2)+0.6); cc2:=1; end if cc2=0 and l<lo then begin pc:=min(max(holding,0),cang2); kc:=cang2-pc; if pc>0 then sell(1,pc,limitr,min(o,lo-0.2)-0.6); if kc>0 then buyshort(1,kc,limitr,min(o,lo-0.2)-0.6); cc2:=-1; end