This study proposes a transaction cost-aware portfolio optimization framework for NASDAQ-100 stocks based on the Hippopotamus Optimization Algorithm (HOA). The mathematical model extends the classical mean-variance framework by incorporating transaction costs into a Net Sharpe Ratio (NSR) objective function. Daily adjusted closing prices of NASDAQ-100 constituent stocks from 2021 to 2025 are employed, with the twenty highest-ranked stocks according to the Sharpe Ratio (SR) selected as the candidate investment universe. Each optimization experiment is independently repeated 25 times to evaluate robustness and solution stability. The results indicate that the proposed HOA consistently achieves competitive optimization performance with very small variability across repeated runs throughout the investment horizon. Although several competing algorithms attain comparable or slightly better objective values during particular rebalancing periods, HOA remains among the strongest-performing methods while exhibiting stable convergence behavior. Throughout the investment horizon, the proposed algorithm produces the highest average cumulative portfolio value of \$5,307.87 \$125.71 from an initial investment of \$1,000, corresponding to an average annual return of 40.03% 0.68%, together with the highest average SR and NSR of 1.5736 0.0151, while maintaining competitive maximum drawdown and transaction costs. These findings demonstrate that incorporating transaction costs directly into the optimization objective enables HOA to achieve a favorable balance between portfolio growth, risk-adjusted performance, and trading efficiency under dynamic market conditions.