The traditional models of hedge funds do not consider the nonlinearity between the leverage and the leveraged return, which is caused by the market liquidity and the transaction cost. In addition, the liquidation condition are mostly set as exogenous or long-term cumulative loss, lacks of the consideration in the lockup period. In this paper we establish a trading model with lockup period restrictions. Fund managers consider investment decisions under the lockup period and the leveraging cost. We also make a calibration under the historical data of the hedge fund industry to estimate the reaction of the fund managers. Furthermore, we predict the funds' decision-making in emergency situations, discussing the event of the Amaranth Advisor in 2006.