ma5:ma(c,5); ma10:ma(c,10); jc:cross(ma5,ma10); sc:cross(ma10,ma5); if jc then begin sellshort(holding<0,1,market); buy( holding=0,1,market); end if sc then begin sell(holding>0,1,market); buyshort( holding=0,1,market); end if c-enterprice>=5 then sell(holding>0,1,market);//多赢 if enterprice-c>=5 then sellshort(holding<0,1,market);//空赢