Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 

Repository files navigation

Personal AlgoBot

This project was a project done by Daniel Jiang, Jodie Zhu and Eric Liu. Throughout the Jupyter Notebook, we have made various comments on how the code works. But to give an overall outlook onto the project, it is our personal method to develop a portfolio of 20 stocks that will produce 0% return (thereby creating a safe portfolio).

How it works

First, you input a .csv file of any stock tickers. Using our threading tool, we will filter the data and create a new file that meets our follwoing requirements:

  • currency must be denominated by USD
  • based in the US market
  • average volume of shares traded must be greater than 10,000
  • Note that ETFs are considered valid tickers

Sample ticker list:

Screen Shot 2022-01-18 at 12 00 26 AM

Then, we measure the risk of each stock based on alpha, beta, standard deviation, and maximum drawdown. We pair the riskiest stock with its least correlated stock in order to offset the risk, storing the tickers in a tuple list. This is based on the concept of overdiversifying our shares (For more info on diversification, visit: https://www.investopedia.com/terms/d/diversification.asp).

Sample tuple list:

Screen Shot 2022-01-18 at 12 05 17 AM

Aftering running through our weight optimization algorithm, you are produced with your original ticker list along with its optimal weightings.

Sample optimal weight list:

Screen Shot 2022-01-18 at 12 09 34 AM

About

Safe portfolio algorithm

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages