This study aims to describe the optimal stock portfolio as a series of processes for selecting a stock portfolio that suits the needs and desires of investors. The variable used is the daily closing price of the stock exchanges listed on the Indonesia Stock Exchange for the period September 1, 2016 to September 1, 2022 for 50 stocks with the highest trading frequency in the first quarter of 2022 using the value at risk, lexicographic goal method, programming, neural networks, and artificial neural networks. It is known that the value-at-risk method in generating shortfalls is carried out using a valuable approach that exceeds the threshold where the assumption of a 5% tail minimum return is generalized with the Pareto distribution. The input of the neural network in producing the output obtained through the PACF and ACF plots is t1. Issuer price forecasts are obtained using the neural network method and the backpropagation algorithm for each issuer, an SSMS of Rp. 1808.3, ICBP of Rp. 12,717, ASII Rp. 6832.1, BBNI of Rp. 6234.6, INCO of Rp. 2781.8, CPIN of Rp. 12,763, TLKM worth 2630.1, SCMA Rp. 2885.5, and WSKT worth Rp. 1575.7. The issuers obtained have a small MAPE value, which is below 10%. Programming the lexicographical objectives resulted in the nine selected issuers having a minimum standard of risk with maximum returns. Of the nine stocks selected, CPIN, SSMS, BBNI, ICBP, TLKM, ASII, INCO, SCMA and WSKT.
 Keywords: return, value at risk, lexicographic goal programming, backpropagation