This study employs the forecasted Price-to-Earnings (P/E) ratio as a value factor, utilizes moving averages for technical analysis, and selects stocks based on insider buying information. Through algorithmic trading, the study aims to reduce trading losses caused by emotional investing. The research focuses on all common stocks in the Taiwan stock market, utilizing the stock selection program of the XQ Expert Trader to identify suitable stocks and optimal entry and exit points. Based on backtesting results, the study identifies effective investment strategies. The empirical results demonstrate that the value factor, technical analysis, and insider buying are effective investment factors. The findings of this study can serve as a reference for individual retail investors in their stock investment decisions.