The paper explores the characteristics associated with the formation of bubbles that occurred in the Hong Kong stock market in 1997 and 2007, as well as the 2000 dot-com bubble of Nasdaq. It examines the profitability of technical analysis (TA) strategies generating buy and sell signals, with and without our proposed trading rules. The empirical results show that, by applying long and short strategies during the bubble formation and a short strategy after the bubble burst, it not only produces returns that are significantly greater than buy-and-hold strategies, but also produces greater wealth compared with TA strategies without trading rules. We conclude that these bubble detection signals help investors generate greater wealth from applying appropriate long and short moving average (MA) strategies.