Modeling and simulation of optimized stock price prediction