if c>r2 then begin sellshort(holding<0,1,limitr,r2); buy(holding=0,1,limitr,r2); end if c<r2 then begin sell(holding>0,1,limitr,r2); buyshort(holding=0,1,limitr,r2); end
//收盘前清仓 if time>=151500 then begin sellshort(holding<0,1,thisclose); sell(holding>0,1,thisclose); end