Streamlit web application displaying historical data on a given stock
- display information on any given stock (given the ticker)
- able to select period, interval and which moving averages
- displays graph with moving averages and the closing price of the given interval and period
- displays the most recent 5 data points given interval including close, high, low, open, volume, moving average and daily percent change
- CSV download avaliable which downloads data of the given timeframe
- displays performance summary including :
- daily drawdown graph
- average daily return, volatility, total return and max drawdown of the period
- cumulative return over the period
- gives error message if the ticker symbol is not found
- gives warning if the moving average cannot be found due to the not having enough data/ time period too short
- Streamlit
- yfinance
- Plotly
- pandas
install the requirements: pip install -r requirements.txt
run the program: streamlit run app.py
Using the program:
- Select stock by entering the ticker, e.g., AAPL
- Select period fromdrop down, e.g., 6mo
- Select interval from drop down, e.g., 1d
- Select moving averages from multiselect, e.g., 50 and 200
To download CSV: click download CSV button