Skip to content

Pegasus47/ACM_Quant_tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ACM Quant Team Inductions โ€“ Python Quantitative Analysis

This repository contains my solutions to the ACM Quant Team Induction tasks. These tasks involved analyzing stock market data using Python and common data science libraries. Each task is designed to demonstrate understanding of basic financial concepts, data analysis, and Python programming skills.


โœ… Completed Tasks

๐Ÿ”น Q1: Simple Moving Average (SMA) Crossover Strategy

  • Used yfinance to download 6 months of historical stock data (AAPL).
  • Computed 5-day and 20-day Simple Moving Averages (SMA).
  • Implemented logic to generate Buy and Sell signals based on SMA crossover.
  • Plotted the Close price, SMA lines, and clearly marked Buy/Sell signals using matplotlib.

โžก๏ธ See Code ยป


๐Ÿ”น Q3: Portfolio Tracker

  • Defined a portfolio with a dictionary containing stock tickers and share quantities.
  • Fetched adjusted closing prices for the past 30 days using yfinance.
  • Calculated daily total portfolio value.
  • Plotted the portfolio value over time.
  • Displayed the latest portfolio value.
  • Handled edge cases like missing data.

โžก๏ธ See Code ยป


๐Ÿ”น Q4: Gainers & Losers Scanner

  • Selected 20 Nifty 50 stocks and fetched their last 1-month data.
  • Calculated the percentage change for each stock.
  • Identified the top 5 gainers and top 5 losers.
  • Visualized results in a bar chart.
  • Bonus: Exported the results to a CSV file.

โžก๏ธ See Code ยป


๐Ÿ›  Libraries Used

  • pandas โ€“ for data manipulation
  • matplotlib โ€“ for plotting
  • yfinance โ€“ to fetch stock market data

๐Ÿš€ How to Run

  1. Clone this repository:
    git clone https://github.com/yourusername/acm-quant-inductions.git
    cd acm-quant-inductions

Install required libraries: pip install pandas numpy matplotlib yfinance

Tested on Python 3.12.

About

For ACM induction process, Arpit Kudre 2023A7PS0158H

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published