MikeFarmer microscopic model is a powerful orderdriven model.It can reproduce many stylized facts.In the paper,the MikeFarmer model was introduced in detail.It was found that the distributions of returns obtained from the model at different timescales can be modeled as the powerlaw distribution in the tails,whose exponents are close to the wellknown cubic law.The reasons for the powerlaw distribution of returns and the clustering effect of volatilities were then studied and it was concluded that powerlaw tails are caused by the powerlaw tail in the distribution of market order prices and the clustering effects are related to the long memory in the time series of submitting order prices.The application of the model was briefly presented.