A Novel Portfolio Selection Strategy Using Gradient-Based Optimizer