Skip to content

stock-analysis time-series arima-model stock-forecasting trading-strategy data-visualization python yfinance statsmodels financial-data stock-market data-analytics machine-learning

Notifications You must be signed in to change notification settings

Swayam29082004/Data-Analytics-and-Visualization-Arima-stock-tradings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ˆ Stock Price Forecasting and Trading Strategy Optimization using ARIMA

This project is focused on forecasting stock prices using the ARIMA (AutoRegressive Integrated Moving Average) model and generating Buy/Sell trading signals based on predicted price movements. We use historical stock data fetched via the yfinance API and visualize both the forecast and trading signals using matplotlib.


๐Ÿง  Project Summary

  • ๐Ÿ“ฆ Model Used: ARIMA (5,1,0)
  • ๐Ÿ—ƒ๏ธ Data Source: Yahoo Finance (yfinance)
  • ๐Ÿงฎ Target Variable: Closing price of selected stock (example: Apple Inc. - AAPL)
  • ๐Ÿ“… Timeframe: Past 1 Year (from today's date)
  • ๐Ÿ’น Forecast Window: Next 10 business days
  • ๐Ÿ“ Signals Generated:
    • ๐Ÿ”ผ Buy when next predicted price is higher than the previous.
    • ๐Ÿ”ฝ Sell when next predicted price is lower than the previous.

๐Ÿงฐ Tools and Libraries

  • yfinance โ€“ fetch stock data
  • statsmodels โ€“ ARIMA modeling
  • pandas โ€“ data manipulation
  • matplotlib โ€“ data visualization
  • datetime โ€“ date range generation
  • warnings โ€“ suppress warnings for clean output

๐Ÿ–ผ๏ธ Example Screenshots

    1. ๐Ÿ“Š ARIMA Forecasted Stock Prices with Buy/Sell Signals
    1. ๐Ÿ“ˆ AAPL Stock Forecast

๐Ÿ”ง Installation

Install the required Python libraries using:

pip install yfinance statsmodels matplotlib pandas

About

stock-analysis time-series arima-model stock-forecasting trading-strategy data-visualization python yfinance statsmodels financial-data stock-market data-analytics machine-learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published