This document summarizes a study on trend following algorithms for technical trading in the stock market. It presents two trend following algorithms: 1) Static P&Q, which uses static values for parameters P and Q to determine when to enter and exit trades, and 2) Adaptive P&Q, which uses dynamically adjusted P and Q values. The algorithms were tested in a stock market simulation, and the Static P&Q algorithm achieved average monthly returns of 75.63%. However, performance degraded as market trend fluctuations increased, implying the need to pause trading during periods of high volatility.