In this paper,a method for the market analysis based on the rules is present-ed and the expressing ability of the rules is discussed in conjunction with the features of random market analysis.The concept of S—expression is used to establish a unified store structure.The concept of variable environment is brought forward and a unified algorithm is realized.Finally,a rule—based report generation system for market analysis is build up.