We have studied the stock markets’ price and commodity which seemed to have power law behaviour. These systems depend on lots of variables . Iecting all of these variables are a difficult almost imposible task. So we had tried to modify the result in a way that does not differs much from the real world.we just have took two hypotheses and try to model the market as a complex system. First hypothesis is that the prices grow more than the actual market value cause investors mimic each other,so the system get to the critical time and make phase transition. We have watched market’s price charts and try to formulate it.We have used Sornette and his partner's model as the second hypothesis for analyzing Iran's and the world's stock markets and tried to peredict theire future behaviour .