Skip to content

n0t-4m17h/algorithmic-trading-advisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithmic Trading Advisor

A python bot that automates large data analysis to provide investment recommendations via quantitative momentum trading.

Requirements 📝

  • cd into the main project directory and run pip3 install -r requirements.txt to install the required package versions.
    • also, python 3.8.10 minimum is required.
  • Must also create an account with IEX Cloud's API, to gain access to the real-time data for free via an api token, but only for 30 days.

Program Execution 🐱‍💻

  1. cd into main dir, then replace 'sp-500-tickers.csv' with the csv file of your companies of interest (or just keep all of them).
  2. Then run python3 strategies/momentum.py, or run it via Jupyter Notebook (recommended)

Investing Strategy 📈

(in simple terms)

  • Momentum trading:
    • Investing in stocks that have increased in price the most.
    • We quantitatively assess the price changes over the last 12 months, excluding the past month, and select the stock with the highest recent price return over the last year, as the most preferred investment.
    • This program instead returns the Top 50 of the 505 companies in the S&P 500.

Known Issues 🤨

  • some ticker's [rarely] info are lost during the API call, so their 'Market Cap', '{x} Price Return', etc. values would be empty in the output files. This has been apprehended, for now, by removing the whole stock entry from the data frame.

Possible Future Improvements 🤔

  • Need to do some backtesting on historical data to quantify bot efficiency.
  • Change API to Alpha Vantage's, as they supposedly provide free real-time data, and IEX Cloud's is only free for 30 days.

Releases

No releases published

Packages

No packages published

Languages