Skip to content

Malvi1497/Stock_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview of the Analysis

Excel file attached for the analysis: https://github.com/Malvi1497/Stock_analysis/blob/main/VBA_Challenege.xlsm.xlsm

Purpose

The purpose of the project is to analyse the given stock information for the year 2017 and 2018 to understand which stocks are worth investing on with the help of VBA. This is done by first retriving each ticker and then calculating the total volume for each ticker and the yearly return. The code is refactored in a way to increase the time efficiency of analysing the data.

Analysis

The analysis was performed on the VBA editor using the information given. The data given for the years 2017 and 2018 include,

  • Ticker Index
  • Date of issue
  • Opening price
  • Closing price
  • Adjusted price
  • Highest price
  • Lowest price and
  • The Volume of the stock

Summary

Visulaization of results

The results were displayed in the excel sheet. The cells were formatted to be shaded in green if there was an increase in the yearly return of the ticker and if there was a decrease the cell will be shaded in red. This helped the client visualize the data better as shown in the images below.

Stock Analysis Year: 2017

2017

Stock Analysis Year: 2018

image

Observation

From the results we can observe that 2017 was really good year for investing execpt for the ticker "TERP" whereas in 2018. The client was particulary interested in the stock "DQ" which rose drastically in the year 2017 and the stocks fell drastically during the course of next year. The stocks took a major hit in the year 2018 except for "RUN" and "ENPH".

Advantages of refactoring the code

The advantages of refactoring the code for this analysis was cleaner and very well organised. The biggest advantage of refactoring the code was to show, with the help of a timer,that the code ran within .5 seconds for both years.

Pros and Cons of refactoring the code

The pros of refactoring the code are it helps in running the code in a clean and quick manner. It helps to organize the code in a way to understand it. However, the disadvantage is that it can become messy if the application is too big.

About

Analysis of stock information with the help of VBA

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published