The aims of this paper are to use a birandom variable to denote the stock return selected by some recurring technical patterns and to study the effect of exit strategy on optimal portfolio selection with birandom returns. Firstly, we propose a new method to estimate the stock return and use birandom distribution to denote the final stock return which can reflect the features of technical patterns and investors- heterogeneity simultaneously; secondly, we build a birandom safety-first model and design a hybrid intelligent algorithm to help investors make decisions; finally, we innovatively study the effect of exit strategy on the given birandom safety-first model. The results indicate that 1 the exit strategy affects the proportion of portfolio, 2 the performance of taking the exit strategy is better than when the exit strategy is not taken, if the stop-loss point and the stop-profit point are appropriately set, and 3 the investor using the exit strategy become conservative.