This web application combines the power of client-side Javascript and Python (using PyScript) to allow users to perform various financial investment tasks. The application allows users to create a portfolio of stocks using the Node.js Yahoo Finance API. Once stock tickers are added, users can calculate the CAPM (Capital Asset Pricing Model) using Python for each stock to measure the expected return of each stock. Users can visualize company data using various profitability metrics and download all the selected company's financial data including stock prices going all the way back to 2005. The application allows users to create a Logistic Regression model that predicts or recommends whether the user should buy the stock or not using Open, High, Low, Volume, and Adjusted Closing price from the previous day. Using Monte Carlo Simulations, Markowitz's Efficient Frontier Theory, and Mathematical Optimization, users can optimize their current portfolio to maximize the Sharpe Ratio or find the portfolio composition with the lowest volatility given the companies added to that portfolio. Finally, the application allows users to run Monte Carlo simulations on a selected company's stock price in an attempt to predict the most likely stock price a month away from today.
jabulanisifundza / financial-calculation-app Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://financial-calculation-app.vercel.app