用戶回復:ma1:ma(c,5);ma2:ma(c,60); kd1:=cross(ma1,ma2) and c>ma2; kk1:=cross(ma2,ma1) and c<ma2; pd:=cross(ma2,ma1); pk:=cross(ma1,ma2); sell(pd,0,market);sellshort(pk,0,market); if kd1 then buy(holding=0,a,market);if kk1 then buyshort(holding=0,a,market);