During the past few decades, there have been many evidences to believe that the stock markets around the world follow cyclical trends. In this paper, we study the cyclical trends using wavelet function based on various time windows on some major stock market indices. We use two methods of Daubechies and reverse bi-orthogonal wavelet methods and determine the optimal values of both methods. The results are used for Tehran stock exchange using the most recent ten years daily information as an empirical study. The details of our analysis on TEDPIX index for the last decade indicate that there are, at least, four trends of weekly, monthly, quarterly and yearly and the cycles would be expected to be repeated in future.